Commit 2cd9fcea by BellCodeEditor

save project

parent 82b4ff20
Showing with 8 additions and 4 deletions
def key_():
def key_():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
key_()
try:
total.append(int(unit))
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