Commit b4edf7a1 by BellCodeEditor

save project

parent 64b2b585
Showing with 22 additions and 2 deletions
...@@ -5,4 +5,5 @@ while True: ...@@ -5,4 +5,5 @@ while True:
break break
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
\ No newline at end of file
def d():
d=[]
while True:
unit=input("输入(q退出)")
if unit=="q":
break
else:
try:
unit=int(unit)
except:
print("请重新输入")
else:
d.append(unit)
print("-"*30)
print(d)
\ No newline at end of file
++ "b/\346\230\257\343\200\202py"
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