Commit a54d20d1 by BellCodeEditor

save project

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