求时间精确到秒的数

# a='2016-07-16 09:12:50'
# b='2016-09-09 04:12:59'
# a1=datetime.datetime.strptime(a, "%Y-%m-%d %H:%M:%S")
# b1=datetime.datetime.strptime(b, "%Y-%m-%d %H:%M:%S")
# res =(b1-a1).seconds
#print(res)

 

posted @ 2016-09-14 16:21  你若精彩,蝴蝶自来  阅读(150)  评论(0编辑  收藏  举报