Commit 7a313754 by BellCodeEditor

save project

parent 4549362e
Showing with 6 additions and 0 deletions
def sb(): def sb():
total = [] total = []
while True: while True:
...@@ -5,6 +6,11 @@ def sb(): ...@@ -5,6 +6,11 @@ def sb():
if unit== 'cnm': if unit== 'cnm':
break break
else: else:
try:
unit=int(unit)
except:
print('输数字')
else:
total.append(unit) total.append(unit)
print(total) print(total)
sb() sb()
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