Commit 9376d7b6 by BellCodeEditor

save project

parent 17d7f65e
Showing with 11 additions and 13 deletions
import turtle xcvb=87
turtle.pensize(2) name='王五'
turtle.pencolor("red") hero=['赵一',30,'丁三',37,'孙五',52,'王陌',89,'周亮',98]
turtle.goto(0,-100) for i in range(len(hero)):
turtle.goto(0,100) if i%2==1 and hero[i]>=xcvb:
turtle.goto(0,0) hero.insert(i-1,name)
turtle.goto(100,0) hero.insert(i,xcvb)
turtle.goto(-100,0)
turtle.goto(0,0) break
turtle.goto(0,-100) print(hero)
turtle.circle(100) \ No newline at end of file
turtle.done()
\ 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