import datetime
e = datetime.datetime.today()
print(f’the time is {e:%Y-%m-%d (%A) %H:%M:%S}’) # datetime时间格式
#‘the time is 2018-07-14 (Sat) 20:46:02’
https://blog.csdn.net/yizhuanlu9607/article/details/89530982
import datetime
e = datetime.datetime.today()
print(f’the time is {e:%Y-%m-%d (%A) %H:%M:%S}’) # datetime时间格式
#‘the time is 2018-07-14 (Sat) 20:46:02’
https://blog.csdn.net/yizhuanlu9607/article/details/89530982