摘要:
arr = [1,2,3,4,5,6,4,5,2,3,6,8,9,6,5,3,6,2,4]dic={}for item in arr: if item in dic.keys(): dic[item]+=1 else: dic[item]=1dic= sorted(dic.items(), key= 阅读全文
posted @ 2018-03-25 22:02
1超级小刀1
阅读(216)
评论(0)
推荐(0)
摘要:
#!/usr/bin/python# -*- coding: UTF-8 -*-import csvwith open('file.csv','a',newline='') as csvfile: spamwriter = csv.writer(csvfile, dialect='excel') w 阅读全文
posted @ 2018-03-25 21:45
1超级小刀1
阅读(1027)
评论(0)
推荐(0)

浙公网安备 33010602011771号