import time
print (‘是’+time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())+’,HELLO WORD!’ )
是2020-09-18 14:25:18,HELLO WORD!
#time.localtime—写入当前时间
python:time.localtime
最新推荐文章于 2023-12-14 21:17:16 发布
import time
print (‘是’+time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())+’,HELLO WORD!’ )
是2020-09-18 14:25:18,HELLO WORD!
#time.localtime—写入当前时间