Commit 339a773b by BellCodeEditor

auto save

parent cc514265
Showing with 6 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
len=66 len=60
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("blue") screen.bgcolor("blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("thrsdyu\ndutdfs",font=("Times",20,"normal")) pen.write("小孩,\n",font=("Times",20,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(5) pen1.pensize(10)
pen1.pencolor("red") pen1.pencolor("red")
pen1.left(45) pen1.left(45)
pen1.forward(2*len) pen1.forward(2*len)
......
import turtle import turtle
screen=turtle.Screen() pen=turtle.Pen
screen.textinput("姓名框","你的名字是:") pen.circle(10)
turtle.done() 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