Commit 838f414f by BellCodeEditor

save project

parent 1ddab633
Showing with 42 additions and 18 deletions
......@@ -3,13 +3,12 @@ def f():
while True:
unit= input("请输入:")
try:
if:
unit== 'q':
if unit== 'q':
break
else:
unit=int(unit)
except:
print('请重新输入整数')
else:
total.append(unit)
#else:
# total.append(unit)
print(total)
f()
f()
\ No newline at end of file
for i in range (9999):
print("hi")
import turtle
q=turtle.Pen()
for i in range(5):
q.forward(200)
q.right(144)
turtle.done()
\ No newline at end of file
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print("请重新输入")
def e():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
try:
unit=int(unit)
except:
print("请重新输入")
else:
total.append(unit)
return total
result=e()
print(result)
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