本文共 146 字,大约阅读时间需要 1 分钟。
方法
import datetimenow = datetime.datetime.now().strftime('%Y/%m/%d %H:%M:%S')print(now)
输出
2020/08/20 22:54:57
使用场景
转载地址:http://uthd.baihongyu.com/