Commit 4f7237b3 by BellCodeEditor

save project

parent 0a0d3c51
Showing with 9 additions and 2 deletions
def w(): def w():
total = [] total = []
while True: while True:
...@@ -5,6 +6,12 @@ def w(): ...@@ -5,6 +6,12 @@ def w():
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
print(total) unit = int(unit)
except:
print('共和国哈哈')
else:
total.append(unit)
print("_"*30)
print(total)
w() w()
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