标签:bsp pen 保存 ict app key dict nbsp print
li = [11,22,33,44,55,66,77,88,99]
dict = {‘k1‘:[],‘k2‘:[]}
for i in li:
if i < 66:
dict["k1"].append(i)
else:
dict[‘k2‘].append(i)
print(dict)
标签:bsp pen 保存 ict app key dict nbsp print
原文地址:https://www.cnblogs.com/wssaried/p/9862671.html