安装依赖
pip install exifread
运行程序并打印照片拍摄时间
import exifread
img=exifread.process_file(open('C:/Users/Administrator/Desktop/图片 (1)/a.JPG','rb'))
time=img['Image DateTime']
print(time)
安装依赖
pip install exifread
运行程序并打印照片拍摄时间
import exifread
img=exifread.process_file(open('C:/Users/Administrator/Desktop/图片 (1)/a.JPG','rb'))
time=img['Image DateTime']
print(time)