1、数组去重的方法
lst=[1,3,5,3,4,4,2,9,6,7]
set_lst=set(lst)
参考:https://blog.csdn.net/weixin_44520259/article/details/89764254
2、统计数组 or 元组 里面字符的重复次数
参考: https://blog.csdn.net/weixin_44520259/article/details/89764254
3\
for i,r in [(1,2)]:
print i,r
4、写入json文件
with open("../config/record.json","w") as f:
2 json.dump(new_dict,f)
3 print("加载入文件完成...")