11 2017 档案
摘要:集合 1、去重 list_1 = set([1,2,3,4,0,7,4,8]) list2 = set([99,34,6,8,3]) list3 = set([0,4,8]) list4 = set([84,45,49]) print(list_1) <<< {0, 1, 2, 3, 4, 7, 8
阅读全文
摘要:模块初识 os:所有跟系统有关的操作基本都是用此模块 os.system("df -h") 调用系统命令,结果输出打印在屏幕上,返回值为执行结果(0或1) os.mknod(file_name) 创建空文件 os.mkdir(dir_name) 创建文件夹 os.path.exists(path)
阅读全文

浙公网安备 33010602011771号