Commit 86043678 by BellCodeEditor

save project

parent 654bc3ba
Showing with 33 additions and 0 deletions
import turtle
screen=turtle.Screen()
pen=turtle.Pen()
screen.textinput("姓名框","你的名字是")
pen.write("1234565",font=("Times",20,"normal"))
turtle.done()
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle
Pen=turtle.Pen()
pen.goto(-100,0)
Pen.write("诺伊,\nturtle真好用,\n我回在画布上写字啦!",font=("Times",30,"normal"))
Pen.hideturtle()
turtle.penup()
Pen1=turtle.Pen()
Pen1.pencolor("red")
Pen1.pensize(5)
Pen1.right(-45)
Pen1.forward(100)
Pen1.circle(50,180)
Pen1.right(90)
Pen1.circle(50,180)
Pen1.forward(100)
Pen1.hideturtle()
screen=turtle.Screen()
screen.bgcolor("light pink")
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