Commit 85dfada7 by BellCodeEditor

auto save

parent f9b6bca9
Showing with 10 additions and 9 deletions
# 悟空想画个六芒星魔法阵,主要的代码已写出,但这有bug,请你帮忙调试下~
import turtle
pen= turtle.Pen() name = 'Andy'
size=textinput("提示","你想要多大的魔法阵呀?") power = 100
pen.circle(size) hero = ['Frank',40,'Jenny',50,'Cole',60,'Candy',65,'Lucas',65,'Linda', 67]
pen.circle(size,360,3) for i in range(len(hero)):
pen.circle(size,60) print(i)
pen.circle(size,360,3) if i%2==1 and hero[i]>=power:
turtle.done() hero.insert(i-1,name)
hero.insert(i,power)
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