Commit 96470b36 by BellCodeEditor

save project

parent 640455aa
Showing with 28 additions and 16 deletions
a=textinput("提示","爱心大小")
len=int(a)
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.write("ohohohohhohohohoho",font=("Times",20,"normal"))
pen.pencolor("red")
pen.pensize(5)
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
turtle.done
\ No newline at end of file
# 悟空想画个六芒星魔法阵,主要的代码已写出,但这有bug,请你帮忙调试下~
import turtle
pen= turtle.Pen()
size1=textinput("提示","你想要多大的魔法阵呀?")
size=int(size1)
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.write("ohohohohhohohohoho",font=("Times",20,"normal"))
pen.pencolor("red")
len = screen.textinput("提示","爱心大小")
len1=int(len)
pen.pensize(5)
pen.left(45)
pen.forward(len1*2)
pen.circle(len1,180)
pen.right(90)
pen.circle(len1,180)
pen.forward(len1*2)
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