python datetime操作

#datetime object转化为timestamp

import datetime


now = datetime.datetime.now()

now_timestamp = time.mktime(now.timetuple())

  

    原文作者:大激动
    原文地址: https://www.cnblogs.com/zhengze/p/10762978.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞