From 3ff2b86599fa11aaaa9e01aed400ef881ff6f4ce Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 17 Jan 2021 16:17:17 +0800 Subject: [PATCH] save project --- func.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/func.py b/func.py index bc1f6ae..353503a 100644 --- a/func.py +++ b/func.py @@ -13,8 +13,14 @@ def new_input(): total.append(unit) print("_"*30) return total -result=new_input() -print(result) + def sum(memory): count=0 + for i in money: + count=count+i + return count +result=new_input() +pay=sum (price) + +print("你一共消费了"+str(psy)+"元!扫码还是现金") \ No newline at end of file -- libgit2 0.25.0