python打印出当下的小时、分钟

#显示python打印出当下的小时、分钟
import datetime
#当下的小时
h=datetime.datetime.now().hour
当下的分钟
m = datetime.datetime.now().minute

posted on 2020-12-07 09:18  袁佳佳  阅读(493)  评论(0)    收藏  举报

导航