摘要:
转载至:https://www.cnblogs.com/shizhengwen/p/8719062.html 一、读入图像 使用函数cv2.imread(filepath,flags)读入一副图片 filepath:要读入图片的完整路径 flags:读入图片的标志 cv2.IMREAD_COLOR: 阅读全文
摘要:
一、读写txt文件1、打开txt文件file_handle=open('1.txt',mode='w')上述函数参数有(1.文件名,mode模式)mode模式有以下几种: #w 只能操作写入 r 只能读取 a 向文件追加 #w+ 可读可写 r+可读可写 a+可读可追加 #wb+写入进制数据 #w模式 阅读全文