用户输入id_card判断id_card是否为全数字是,则打印输出id_card否,则打印输出id_card格式错误
id_card = input() if id_card.isdigit(): print(id_card) else: print("格式错误")