Commit d25438e6 by BellCodeEditor

save project

parent da4fb616
Showing with 4 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("dark green") screen.bgcolor("brown")
len=screen.textinput("100","100") len=screen.textinput("来↓","心要多大?")
len=int(len) len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("好\n生日快乐",font=("Times",30,"normal")) pen.write("好\n生日快乐",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
len=60 for i in range(10):
len=int(random)
pen.penup() pen.penup()
pen.goto(-120,-80) pen.goto(-120,-80)
pen.pendown() pen.pendown()
......
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