Commit af683d8a by BellCodeEditor

save project

parent 1c8ce178
Showing with 3 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light pink") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("祝你生日快乐",font=("Times",20,"normal")) len1=screen.textinput("姓名框","你叫什么名字?")
pen.write(len1+"\n祝你生日快乐!",font=("Times",15,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.fillcolor("red") pen1.fillcolor("red")
......
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