diff --git a/func.py b/func.py new file mode 100644 index 0000000..c1662e5 --- /dev/null +++ b/func.py @@ -0,0 +1,15 @@ +def sb(): + total = [] + while True: + unit= input("请输入:") + if unit== 'q': + break + else: + total.append(int(unit)) + dsb=0 + for i in total: + dsb=dsb+i + + print("您一共消费了"+str(dsb)+"元,滚") + return +sb() \ No newline at end of file diff --git a/zhangsasa.py b/zhangsasa.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/zhangsasa.py