摘要:
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轴和 阅读全文
摘要:
import ospath = input('请输入文件路径(结尾加上/):')# 获取该目录下所有文件,存入列表中fileList = os.listdir(path)n=0for i in fileList: # 设置旧文件名(就是路径+文件名) oldname = path + os.sep 阅读全文
摘要:
import osfrom PIL import Imagefileplace='................你的路径.....'images = os.listdir(fileplace)for img in images: image=Image.open(fileplace+img) na 阅读全文