Commit 75aa575e by BellCodeEditor

save project

parent 66120d22
Showing with 17 additions and 11 deletions
# 利用write()帮助悟空给诺依回信吧~ import turtle
import turtle s = turtle.Screen() #创建画布
# p1=turtle.Pen() s.bgcolor("pink")
# p1.write("诺伊,\nturtle真好用!\n我也会做贺卡了!",font=("微软雅黑",30,"normal"))
# p1.hideturtle()
turtle.colormode(255) p1 = turtle.Pen()
p2=turtle.Pen() p1.penup()
p2.pensize(10) p1.goto(0,-100)
p2.pencolor((255,20,147)) p1.write("你好,是是是!",font=("微软雅黑",30,"normal"))
p1.hideturtle()
p2 = turtle.Pen()
p2.setheading(45) p2.setheading(45)
p2.forward(100) p2.forward(100)
...@@ -17,4 +20,7 @@ p2.forward(100) ...@@ -17,4 +20,7 @@ p2.forward(100)
p2.hideturtle() p2.hideturtle()
turtle.done()
\ No newline at end of file
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