2022年2月23日
摘要: 1.用递归遍历文件夹,如果是文件,打印出路径,如果是目录,继续循环打开 import osdef allfiles(path): for i in os.listdir(path): filepath=os.path.join(path,i) if os.path.isfile(filepath): 阅读全文
posted @ 2022-02-23 20:32 请你一定要记得我好吗 阅读(55) 评论(0) 推荐(0)
摘要: Python正则元字符,贪婪模式,非贪婪模式 阅读全文
posted @ 2022-02-23 18:04 请你一定要记得我好吗 阅读(192) 评论(0) 推荐(0)
摘要: Python正则函数用法 阅读全文
posted @ 2022-02-23 15:03 请你一定要记得我好吗 阅读(57) 评论(0) 推荐(0)