Python windows serial 一.参考文章: Serial port programming http://www.cnblogs.com/2zhyi/p/3405339.html python pyserial 2.7 https://pypi.python.org/pypi/pyserial 串口通讯的python模块——pySerial http://blog.csdn.net/dainiao01/article/details/5885122 Welcome to pySe
Python 通过文件名批量移动文件 https://stackoverflow.com/questions/28913088/moving-files-with-wildcards-in-python import glob import shutil import os for data in glob.glob("C:\\11\\A*"): # 原始地址 if not os.path.isdir(data): shutil.move(data,"C:\\2\\"
Python批量修改文件名 # -*- coding: cp936 -*- import os from nt import chdir path="./files/" fromstr="转换后" tostr="" for root,dirs,files in os.walk(path): for name in files: print name print root if fromstr in name: newname=name.repla