Commit 899c3986 by BellCodeEditor

save project

parent 257e98e8
Showing with 2 additions and 9 deletions
...@@ -3,22 +3,15 @@ def a(): ...@@ -3,22 +3,15 @@ def a():
while True: while True:
unit= input("请输入:") unit= input("请输入:")
if unit== 'q': if unit== 'q':
return unit
break break
else: else:
try: try:
unit=int(unit) unit=int(unit)
except: except:
input("要输入数字") input("要输入数字")
else: else:
total.append(unit) total.append(unit)
print("-"*30)
print("-"*30)
return total return total
def b(e): def b(e):
qian=0 qian=0
......
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