摘要: #w写模式,r读模式,a追加,r+读写,w+写读,a+追加读,rb二级制格式读文件,wb写二级制文件 '''f = open('yesterday','a+',encoding='utf-8') #文件句柄(文件内存对象): f = open('yesterday','r+',encoding='u 阅读全文
posted @ 2018-04-27 17:39 无所住心 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: #集合是无序的list_1 = [1,3,4,5,7,3,6,7,9]list_1 = set(list_1) #集合去重list_2 = set([2,6,0,66,22,8,4])#交集print(list_1.intersection(list_2))#并集print(list_1.union 阅读全文
posted @ 2018-04-27 17:30 无所住心 阅读(1364) 评论(0) 推荐(0) 编辑