Commit 9376d7b6 by BellCodeEditor

save project

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