题解 | #牛牛的年龄#

牛牛的年龄

http://www.nowcoder.com/practice/31ee4189ea294e45ae1961fd9d405c9f

from datetime import datetime

str1 = input()
str2 = input()

birtrhday = datetime.strptime(str1,'%Y%m%d %H:%M:%S')
curr_day = datetime.strptime(str2,'%Y%m%d %H:%M:%S')

print(birtrhday)
print(curr_day)

print((curr_day-birtrhday).days)
全部评论

相关推荐

点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务