Commit 846207da by BellCodeEditor

save project

parent f9b6bca9
Showing with 22 additions and 8 deletions
# 悟空想画个六芒星魔法阵,主要的代码已写出,但这有bug,请你帮忙调试下~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
#设置画布颜色
pen= turtle.Pen() screen=turtle.Screen()
size=textinput("提示","你想要多大的魔法阵呀?") screen.bgcolor("light blue")
pen.circle(size) #写文字
pen.circle(size,360,3) pen=turtle.Pen()
pen.circle(size,60) pen.penup()
pen.circle(size,360,3) pen.goto(110,-150)
pen.write("诺依你个cxk, \nTM的是个大JJ",font=("times",20,"normal"))
pen.hideturtle()
#画爱心
len=99
pen1=turtle.Pen()
pen1.pensize(15)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.hideturtle()
turtle.done() turtle.done()
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