帮我用python写出‘从键盘输入你的身份证号码输出显示你的生日提示 使用字符串切片处理’
id_number = input("请输入你的身份证号码:") birthday = id_number[6:14] print("你的生日是:" + birthday[0:4] + "年" + birthday[4:6] + "月" + birthday[6:8] + "日")
原文地址: https://www.cveoy.top/t/topic/bS4L 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
id_number = input("请输入你的身份证号码:") birthday = id_number[6:14] print("你的生日是:" + birthday[0:4] + "年" + birthday[4:6] + "月" + birthday[6:8] + "日")
原文地址: https://www.cveoy.top/t/topic/bS4L 著作权归作者所有。请勿转载和采集!