while True : |
try : |
print ( '------------------------------输入界面----------------------------------' ) |
a = int ( input ( '账号:' )) |
b = int ( input ( '密码;' )) |
if a = = 123456 and b = = 123456 : |
print ( '正确!' ) |
try : |
e = int ( input ( '身份证请输入1,姓名输入2,年龄输入3:' )) |
if e> 3 : |
print ( '输入不合理' ) |
else : print (myinformation(e)) |
except ValueError: |
print ( '出错了' ) |
elif a ! = 123456 and b = = 123456 : |
print ( '账号错误\n重来吧!' ) |
elif b ! = 123456 and a = = 123456 : |
print ( '密码错误\n重来吧!' ) |
else : |
print ( '账号错误,密码错误' ) |
except ValueError as reason: |
print ( '出错了,原因是密码或账号必须是数字哦!\n重来吧!' ) |