Commit f4897f95 by BellCodeEditor

save project

parent 952eff98
Showing with 9 additions and 3 deletions
def 价格():
total = []
while True:
......@@ -5,6 +6,11 @@ def 价格():
if unit== 'q':
break
else:
total.append(unit)
try:
unit=int(unit)
except:
print('请输入一个数字')
else:
total.append(unit)
print(total)
价格()
\ No newline at end of file
价格()
\ 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