Python records the current system time to generate photos directly named

Python records the current system time:


import datetime

curr_time = datetime.datetime.now()
print(str(curr_time.year)+"."+str(curr_time.month)+"."+str(curr_time.day)+"."+str(curr_time.hour)+"."+str(curr_time.minute)+"."+str(curr_time.second))

Guess you like

Origin blog.csdn.net/weixin_42859280/article/details/112425820