Commit 5e66c977 by BellCodeEditor

save project

parent f9b6bca9
Showing with 24 additions and 8 deletions
# 悟空想画个六芒星魔法阵,主要的代码已写出,但这有bug,请你帮忙调试下~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen= turtle.Pen()
size=textinput("提示","你想要多大的魔法阵呀?") x=turtle.Pen()
pen.circle(size) x.penup()
pen.circle(size,360,3) x.goto(100,-100)
pen.circle(size,60) x.write("Hi,诺依~\n用python写电子邮件真是太有趣啦~",font=("Times",13,"normal"))
pen.circle(size,360,3) x.hideturtle()
turtle.done()
a=turtle.Pen()
a.color("red")
a.pensize(5)
len=screen.textinput("提示","你想要多大的爱心呀!")
lovesize=int(len)
a.left(45)
a.forward(lovesize*2)
a.circle(lovesize,180)
a.right(90)
a.circle(lovesize,180)
a.forward(lovesize*2)
a.hideturtle()
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