查看系统时间


 

 

import datetime
now = datetime.datetime.now()
print (now.strftime("%Y年%m月%d日 %H小时%M分"))

posted @ 2022-12-08 18:50  ^时&空^  阅读(109)  评论(0)    收藏  举报