2020年9月13日

摘要: 文件的基本读写(需要存在love文件) #文件操作:打开-读/写....-关闭 f = open("love",'r',encoding='utf-8')#r表示只读模式,不能进行写,需要存在一个love的文件 e = open("love1",'w',encoding='utf-8')#w表示只写 阅读全文
posted @ 2020-09-13 22:08 阿翔study 阅读(169) 评论(0) 推荐(0)
摘要: # -*- coding=utf-8 -*-# Author:gx#集合是无序的list_1= [1,3,4,5,6,3,9,6]list_1 = set(list_1) #列表转集合,并去重print(list_1)list_2 = set([3,2,6,91,32])print(list_1,l 阅读全文
posted @ 2020-09-13 10:31 阿翔study 阅读(135) 评论(0) 推荐(0)

导航