摘要:
import os filepaths = []; dirpaths = []; pathName = r'C:\anfei\json\20191128' for root, dirs, files in os.walk(pathName): for file in files: file_path 阅读全文
摘要:
dict = {}for i in range(1, 6): if i not in dict: dict[i] = [] for j in range(101, 106): dict[i].append(j)print(dict) 阅读全文
摘要:
对于非纯字符串组成的列表,需要使用map(str, 列表)转换,纯字符串组成的列表则不需要转换 阅读全文
摘要:
1.命令a.硬链接: ln 源文件 链接名 [root@localhost tmp]# ll -i total 118319574 -rw-r--r-- 2 root root 1 Nov 28 18:07 e.txt [root@localhost tmp]# ln e.txt f [root@l 阅读全文