Commit 0d0a9986 by BellCodeEditor

auto save

parent 93d674db
Showing with 33 additions and 7 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle # import turtle
# p = turtle.Pen() # p = turtle.Pen()
# p.write("你好,\n诺伊",font=("times""30""normal")) # p.write("你好,\n诺伊",font=("times""30""normal"))
# turtle.done()
# p1 = turtle.Pen()
# p1.pensize(5)
# p1.pencolor("red")
# p1.left(45)
# p1.forward(100)
# p1.circle(50,180)
# p1.right(90)
# p1.circle(50,180)
# p1.forward(100)
# turtle.done() # turtle.done()
import turtle
screen = turtle.Screen()
screen.bgcolor("light blue")
p = turtle.Pen()
p.penup()
p.goto(-100,-100)
p.write("Hi,诺伊\n祝你生日快乐",font=("times",30,"normal"))
p.hideturtle()
p1 = turtle.Pen() p1 = turtle.Pen()
len = 60
p1.pensize(5) p1.pensize(5)
p1.pencolor("red") p1.pencolor("red")
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(2*60)
p1.circle(50,180) p1.circle(len,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(len,180)
p1.forward(100) p1.forward(2*len)
p1.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
import turtle
screen = turtle.Screen()
screen.textinput("姓名框","你的名字是:")
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