Commit 1334e22c by BellCodeEditor

save project

parent 17b2d08c
Showing with 7 additions and 2 deletions
...@@ -2,8 +2,13 @@ def a(): ...@@ -2,8 +2,13 @@ def a():
total = [] total = []
while True: while True:
unit= input("请输入:") unit= input("请输入:")
try:
unit=input(unit)
except:
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) print("jlkhke")
print(total) else:
total.append(unit)
print(total)
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