摘要:
参考链接:xinyangq import winreg import os # 合并路径与文件名 def main(): new_path = os.path.join(desktop_path(), 'aaa.xlsx') print(new_path) # 获取当前系统的桌面绝对路径 def d 阅读全文
摘要:
from PIL import Image img = Image.open('F:\desktop\爬取的图片\pic.jpg') (picW,picH) = img.size # 欲裁剪为4*3 bili = 4/3 if picW/picH>=bili: print('weight pic') 阅读全文