Commit ad07ad26 by BellCodeEditor

save project

parent e267c882
Showing with 8 additions and 6 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
# import turtle
# pen=turtle.Pen()
# pen.write("白雪歌送武判官归京\n北风卷地白草折,胡天八月即飞雪。\n忽如一夜春风来,千树万树梨花开。\n散入珠帘湿罗幕,狐裘不暖锦衾薄。\n将军角弓不得控,都护铁衣冷难着。\n瀚海阑干百丈冰,愁云惨淡万里凝。\n中军置酒饮归客,胡琴琵琶与羌笛。\n纷纷暮雪下辕门,风掣红旗冻不翻。\n轮台东门送君去,去时雪满天山路。\n山回路转不见君,雪上空留马行处。",font=("Times",15,"normal"))
# pen.hideturtle()
# turtle.done()
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.left(45) i=turtle.Screen()
i.bgcolor(red)
pen.penup()
pen.write("白雪歌送武判官归京\n北风卷地白草折,胡天八月即飞雪。\n忽如一夜春风来,千树万树梨花开。\n散入珠帘湿罗幕,狐裘不暖锦衾薄。\n将军角弓不得控,都护铁衣冷难着。\n瀚海阑干百丈冰,愁云惨淡万里凝。\n中军置酒饮归客,胡琴琵琶与羌笛。\n纷纷暮雪下辕门,风掣红旗冻不翻。\n轮台东门送君去,去时雪满天山路。\n山回路转不见君,雪上空留马行处。",font=("Times",15,"normal"))
pen.hideturtle()
turtle.done()
pen.pencolor("blue") pen.pencolor("blue")
pen.pensize(5) pen.pensize(5)
pen.left(45)
pen.goto(-100,-100)
pen.forward(100) pen.forward(100)
pen.circle(50,180) pen.circle(50,180)
pen.right(90) pen.right(90)
......
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