Commit debca692 by BellCodeEditor

save project

parent 07858a54
Showing with 34 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
screen=turtle.Screen()
screen.bgcolor("light yellow")
pen.color("green")
pen.write("你好啊!\n 学习python真有趣。\n Are you ready?",font=("Times",15,"normal"))
pen.hideturtle()
len=screen.textinput("提示:","How do you want big?")
len=int(len)
pen1=turtle.Pen()
pen1.color("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
pen= turtle.Pen()
size=screen.textinput("提示","你想要多大的魔法阵呀?")
size=int(size)
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
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