Commit 2cd9fcea by BellCodeEditor

save project

parent 82b4ff20
Showing with 7 additions and 3 deletions
...@@ -5,6 +5,9 @@ def key_(): ...@@ -5,6 +5,9 @@ def key_():
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
print(total) total.append(int(unit))
key_() except:
print("要输入数字")
return total
print(key_())
\ 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