'''
python银行
输入卡号和密码 定义三个卡号,分别为1001,1002,1003 密码统一为123456
三次输入错误便退出程序。
输入卡号和密码成功后,输入要办的业务编号:1.存款 2.取款 3.退卡
执行相应的业务。
'''
card1="1001"
pwd1="123456"
rest1=10000
card2="1002"
pwd2="123456"
rest2=20000
card3="1003"
pwd3="123456"
rest3=30000
print("欢迎来到python银行!")
times=0
while True:
card=input(("请输入卡号:"))
pwd=input(("请输入密码:"))
rest=0 #余额
if card==card1 and pwd==pwd1:
rest=rest1
elif card==card2 and pwd==pwd2:
rest=rest2
elif card==card3 and pwd==pwd3:
rest=rest3
else:
times=times+