摘要: python 中 strftime() 是将时间转换为规定格式的字符串 strptime()是将字符串转换成时间 # -*- coding:utf-8 -*- import time str_time = '20220326' time_obj = time.strptime(str_time, " 阅读全文
posted @ 2022-03-28 21:04 宇宙刘 阅读(296) 评论(0) 推荐(0)