摘要: dt = datetime.datetime.now()hour = dt.hourmonth = dt.monthday = dt.day格式化时间 #!/usr/bin/python3 import time # 格式化成2016-03-20 11:45:39形式 print (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))... 阅读全文
posted @ 2019-09-11 11:42 yjy888 阅读(140) 评论(0) 推荐(0) 编辑