Commit cabf4d0c by BellCodeEditor

save project

parent ee00220d
Showing with 12 additions and 6 deletions
try:
def new(): def new():
total = [] total = []
while True: while True:
unit= input("请输入:") try:
if unit== 'q': unit= int(input("请输入:"))
break except:
print("6***6****6")
else: else:
total.append(unit) if unit== -1:
print(total) print("6**********************************6***********************************6")
break
else:
total.append(unit)
print(total)
new() new()
\ 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