摘要: from collections import defaultdictvalues = [11,22,33,44,55,67,77,88,99,90,]my_dict = defaultdict(list)for value in values: if value>66: my_dict['k1'] 阅读全文
posted @ 2017-08-22 16:13 pop_PY 阅读(432) 评论(0) 推荐(0) 编辑
摘要: str1="Find the key in the picture,good luck.." for i in range(256): for j in range(39): b=(ord(str1[j])^j) print bin(b) 阅读全文
posted @ 2017-08-22 13:11 pop_PY 阅读(250) 评论(0) 推荐(0) 编辑
摘要: dic={'k1':[],'k2':[]}all_list=[11,22,33,77,88,99,]for i in all_list: if i>66: dic['k1'].append(i) else: dic['k2'].append(i)print(dic) 阅读全文
posted @ 2017-08-21 15:56 pop_PY 阅读(189) 评论(0) 推荐(0) 编辑
摘要: int long float str list tuple dict set 阅读全文
posted @ 2017-08-17 19:37 pop_PY 阅读(932) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-08-10 11:50 pop_PY 阅读(3) 评论(0) 推荐(0) 编辑