Commit 668e5d63 by BellCodeEditor

save project

parent dc70412a
Showing with 34 additions and 0 deletions
try:
total=[]
while True:
a=input("请输入菜名:")
if a=='q':
break
else:
total.append(a)
print(total)
except:
print('请重输')
print('ok')
def w():
a=[]
while True:
aa=input("菜价")
if aa == "q":
break
else:
a.append(aa)
return a
count=0
s=w()
print(s)
for i in s:
count=count+int(i)
print(count)
\ 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