python
菜是菜人是真帅
这个作者很懒,什么都没留下…
展开
-
python 2.7.8读取指定文件夹最新文件\第二新的文件,然后复制到指定文件夹下
import osimport os.path import shutil def find_new_file(dir): '''查找目录下最新的文件''' file_lists = os.listdir(dir) file_lists.sort(key=lambda fn: os.path.getmtime(dir + "\\" + fn原创 2019-04-10 09:13:15 · 661 阅读 · 0 评论 -
python批处理报错:SyntaxError: Non-ASCII character
Python will default to ASCII as standard encoding if no other encoding hints are given.To define a source code encoding, a magic comment must be placed into the source files either as first or second...原创 2019-02-26 19:12:42 · 218 阅读 · 0 评论