WebLinuxStudy

导航

 

2019年11月28日

摘要: import os filepaths = []; dirpaths = []; pathName = r'C:\anfei\json\20191128' for root, dirs, files in os.walk(pathName): for file in files: file_path 阅读全文
posted @ 2019-11-28 23:32 WebLinuxStudy 阅读(1804) 评论(0) 推荐(1) 编辑
 
摘要: 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) 阅读全文
posted @ 2019-11-28 23:05 WebLinuxStudy 阅读(6523) 评论(0) 推荐(0) 编辑
 
摘要: 对于非纯字符串组成的列表,需要使用map(str, 列表)转换,纯字符串组成的列表则不需要转换 阅读全文
posted @ 2019-11-28 22:33 WebLinuxStudy 阅读(1084) 评论(0) 推荐(0) 编辑
 
摘要: 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 阅读全文
posted @ 2019-11-28 18:03 WebLinuxStudy 阅读(364) 评论(0) 推荐(0) 编辑