同学代码,购物车。
#!/usr/bin/env python __author__ = 'liudong' #定义空的购物列表: cart = [] #查询用户余额 import os,sys def money(): filename = sys.path[0]+'/money.txt' if os.path.exists(filename): m = open('./money.txt','r') mon = m.readline() m.close() mon = int(mon) return mon else: exitt = False while not exitt: aa = input("