python datetime

import datetime

nowtime = datetime.datetime.now()

nowtime.strftime("%Y-%m-%d %H:%M:%S.") + str(nowtime.microsecond)

posted @ 2019-06-25 13:35  zhaocundang  阅读(213)  评论(0编辑  收藏  举报