datetime 获取时间,可直接插入到数据库表中
from datetime import datetime t = datetime.now() now_time = t.isoformat(sep=' ', timespec='seconds')
本文来自博客园,作者:CodeYaSuo,转载请注明原文链接:https://www.cnblogs.com/hany-postq473111315/p/15934578.html
from datetime import datetime t = datetime.now() now_time = t.isoformat(sep=' ', timespec='seconds')
本文来自博客园,作者:CodeYaSuo,转载请注明原文链接:https://www.cnblogs.com/hany-postq473111315/p/15934578.html