摘要: axis([xmin xmax ymin ymax]): [ ]中分别给出x轴和y轴的最大值、最小值。( sets scaling for the x- and y-axes on the current plot.) axis([xmin xmax ymin ymax]): [ ]中分别给出x轴和 阅读全文
posted @ 2019-11-03 20:37 白羊呼啦 阅读(2860) 评论(0) 推荐(0) 编辑
摘要: import ospath = input('请输入文件路径(结尾加上/):')# 获取该目录下所有文件,存入列表中fileList = os.listdir(path)n=0for i in fileList: # 设置旧文件名(就是路径+文件名) oldname = path + os.sep 阅读全文
posted @ 2019-11-03 17:33 白羊呼啦 阅读(170) 评论(0) 推荐(0) 编辑
摘要: import osfrom PIL import Imagefileplace='................你的路径.....'images = os.listdir(fileplace)for img in images: image=Image.open(fileplace+img) na 阅读全文
posted @ 2019-11-03 17:30 白羊呼啦 阅读(172) 评论(0) 推荐(0) 编辑