- 博客(23)
- 收藏
- 关注
原创 Python报错——All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
【代码】Python报错——All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters。
2022-11-05 16:53:45
2177
原创 Python —实现批量读取指定文件夹中的图片大小并写入EXCEL
from PIL import Imageimport osimport xlwtimg_folder = "D:\image" #需要识别图片的文件夹imlist = os.listdir(img_folder)imlist.sort()book = xlwt.Workbook(encoding='utf-8',style_compression=0)sheet = book.add_sheet('landslide图片大小',cell_overwrite_ok=True)col =
2022-04-22 12:02:31
1203
原创 Python——将图像文件转化为RGB
from PIL import ImageL_path = '待转化文件路径'L_image = Image.open(L_path)out = L_image.convert("RGB")out.save("输出文件路径")
2022-02-10 14:44:45
2883
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人