phython请编程实现给定身份证号判别其对应的性别
id=input("请输入身份证号:") sex=id[16:17] if int(sex)%2: sex = '男' else: sex = '女' print(sex)