Commit a9e9bd2f by BellCodeEditor

save project

parent c407d79a
Showing with 12 additions and 3 deletions
......@@ -5,6 +5,15 @@ def ss2s():
if unit== 'q':
break
else:
try:
mone=int(money)
except:
print('重新输入一个数字')
else:
total.append(money)
finally:
print('-'*30)
total.append(unit)
print(total)
ss2s()
\ No newline at end of file
return total
a=ss2s()
print(a)
\ 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