Commit eddfedf1 by BellCodeEditor

save project

parent 07858a54
Showing with 31 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
a=turtle.Screen()
len=int(a.textinput("标题","提示"))
a.bgcolor("light blue")
p=turtle.Pen()
p.pensize(5)
p.pencolor("red")
p.write("傻逼你发个头!\n小牛逼",font=("Times",25,"normal"))
p.hideturtle()
p.left(45)
p.forward(len*2)
p.circle(len,180)
p.right(90)
p.circle(len,180)
p.forward(len*2)
turtle.done()
# import turtle
# a=turtle.Screen()
# a.bgcolor("blue")
# b=turtle.Pen()
# b.penup()
# b.goto(100,0)
# b.forward(100)
# turtle.done()
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
turtle.down()
\ 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