Commit 3d05f448 by BellCodeEditor

save project

parent 9fc54849
Showing with 6 additions and 0 deletions
...@@ -4,6 +4,7 @@ def 价格(): ...@@ -4,6 +4,7 @@ def 价格():
unit= input("请输入:") unit= input("请输入:")
print('-'*30) print('-'*30)
if unit== 'q': if unit== 'q':
break break
else: else:
try: try:
...@@ -12,5 +13,10 @@ def 价格(): ...@@ -12,5 +13,10 @@ def 价格():
print('请输入一个整数') print('请输入一个整数')
else: else:
total.append(a) total.append(a)
return total
print(total) print(total)
价格() 价格()
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