Commit a9e9bd2f by BellCodeEditor

save project

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