1 money = input('请输入您的工资:')
2 shop = [("iphone",5800),("ipod",3000),("book",210),("Archer python"...print("请正确输入整数",end=':')
5 money = input()
6 money = int(money)
7 while True:
8 print("商品详情...%s $%s".center(50,' ') % (i,shop[i][0],shop[i][1]))
11 print("请输入你要购买的商品序号,(退出请按'q'):",end='')
12...not( num == 'q' or num.isdigit() and int(num) = 0 ):
14 print("请正确输入商品序号