Commit a54d20d1 by BellCodeEditor

save project

parent 871f8317
Showing with 3 additions and 3 deletions
def func():
total=[]
while True:
unit=input('请输入:')
unit=input('请输入价格(按q退出):')
if unit=='q':
break
try:
......@@ -12,4 +12,5 @@ def func():
total.append(unit)
print('已保存。')
print(total)
func()
\ No newline at end of file
return total
func()
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