view.funcInterface() choice = input("请选择您要办理的业务:") if choice == '1': atm.newAccount() elif choice == '2': atm.checkMoney() elif choice == '3': atm.saveMoney() elif choice == '4': atm.getMoney() elif choice == '5': atm.transferMoney() elif choice == '6': atm.changePassword() elif choice == '7': atm.lockAccount() elif choice == '8': atm.unlockAccount() # elif choice == '9': # atm.reissueCard() elif choice == '9': atm.closeAccount() # elif choice == 'R' # atm.ruturn() elif choice == 'Q': if atm.exit(): if view.logout(): break else: print("您的输入有误!")