题解 | #出生日期输入输出#
出生日期输入输出
http://www.nowcoder.com/practice/4a4a9dd1edb6453ba4a0432319200743
import datetime
brith = input()
print("year={}\nmonth={}\ndate={}".format(brith[:4],brith[4:6],brith[-2:])) 出生日期输入输出
http://www.nowcoder.com/practice/4a4a9dd1edb6453ba4a0432319200743
import datetime
brith = input()
print("year={}\nmonth={}\ndate={}".format(brith[:4],brith[4:6],brith[-2:])) 相关推荐