![](http://43.138.69.59/wp-content/uploads/2023/07/微信截图_20230701111113.png)
安装依赖
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)