码迷,mamicode.com
首页 > 其他好文 > 详细

# 输入身份证打印出生年月日

时间:2021-05-24 09:21:56      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:put   你知道   ogr   idcard   hda   inpu   input   style   省份   

1 # 输入身份证打印出生年月日
2 programer_1 = ‘你知道我的生日吗?‘
3 print(‘甲说:‘, programer_1)
4 programer_2 = ‘输入你的省份证号:‘
5 print(‘乙说:‘, programer_2)
6 idcard = input()
7 birthday = idcard[6:10]+‘年‘+idcard[10:12]+‘月‘+idcard[12:14]+‘日‘
8 print(‘乙说:‘,‘你是‘,birthday,‘出生的!‘)

 

# 输入身份证打印出生年月日

标签:put   你知道   ogr   idcard   hda   inpu   input   style   省份   

原文地址:https://www.cnblogs.com/zhaoyiguang/p/14768570.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!