Python 2021-07-15 学习 Python Comments 1、新建文档,输入内容123fp=open ('d:/text.txt','w')print('Hellow world!!!',file=fp)fp.close() 2/调用时间函数1234import timeprint (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))