Commit 6fa94120 by BellCodeEditor

save project

parent af30d001
Showing with 5 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle#导入turtlr模块
screen=turtle.Screen() screen=turtle.Screen()#实例化背景
screen.bgcolor("blue") screen.bgcolor("blue")#改变背景
pen=turtle.Pen() pen=turtle.Pen()#实例化画笔
pen.penup() pen.penup()#抬笔
pen.goto(200,10) pen.goto(200,10)
pen.write("诺伊,turtle真好\n我也很喜欢\n谢谢拜拜",font=("Times",10,"normal")) pen.write("诺伊,turtle真好\n我也很喜欢\n谢谢拜拜",font=("Times",10,"normal"))
pen.hideturtle() pen.hideturtle()
......
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