Commit 74873984 by BellCodeEditor

save project

parent 05e7d622
import func
bb=func.fu()
print(bb)
\ No newline at end of file
def fu():
c=0
total = []
while True:
unit=input("请输入:")
if unit== 'q':
break
else:
try:
int(unit)
except:
print("输入错误!")
else:
total.append(unit)
for i in total:
c=c+int(i)
return
# print("您一共消费了"+str(c)+"元!请问是用微信还是刷卡?")
# fu()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment