尝试是这样的注意psudeo代码和实际代码和之间的差异,因为你希望用户输入比较一个数字,你需要将字符串输入转换为INT:
import sys
def proc_withdrawal():
print("Your proc_withdrawal code goes here")
def proc_balance():
print("Your proc_balance code goes here")
def proc_pin():
print("Your proc_pin code goes here")
def proc_bills():
print("Your proc_bills code goes here")
def proc_cancel():
print("Thank you for using Simon Raivid's Cash Machine, Have a nice day!")
sys.exit(0)
while True:
print("Simon Raivid's Cash Machine")
print("===========================")
print("\t1 – Cash withdrawal")
print("\t2 – Balance")
print("\t3 – PIN Services"