摘要: 参考:https://www.jb51.net/article/258341.htm os.walk本身已经是遍历读取,包含所有的子文件(夹) path = u'.' #文件路径 def newWalkFile2(file): #main_dir 当前路径,sub_dir_list 当前路径下的子文 阅读全文
posted @ 2023-05-05 17:15 乐swap火 阅读(92) 评论(0) 推荐(0)
摘要: https://www.zhihu.com/question/35584979/answer/274675706 https://www.cnblogs.com/hackerl/p/4963642.html python中字符串有两种形式: str和Unicode 如果是Unicode,使用prin 阅读全文
posted @ 2023-05-05 16:05 乐swap火 阅读(64) 评论(0) 推荐(0)
摘要: 本质上是因为批处理读取命令时是按行读取的(另外例如for命令等,其后用一对圆括号闭合的所有语句也当作一行) 在一行中即使是使用变量赋值也是无作用的,使用才有了变量延迟 https://www.jb51.net/article/29323.htm 阅读全文
posted @ 2023-05-05 09:43 乐swap火 阅读(126) 评论(0) 推荐(0)