Commit cabecaf9 by BellCodeEditor

save project

parent a50ceeec
Showing with 35 additions and 0 deletions
import turtle
import random
w=[50,75,100,125,150]
pen=turtle.Pen()
p=turtle.Pen()
s=turtle.Screen()
a=random.choice(w)
pen.hideturtle()
pen.penup()
p.hideturtle()
p.penup()
pen.write("白雪歌送武判官归京\n[唐] 岑参\n北风卷地白草折,胡天八月即飞雪。\n忽如一夜春风来,千树万树梨花开。\n散入珠帘湿罗幕,狐裘不暖锦衾薄。\n将军角弓不得控,都护铁衣冷难着。\n瀚海阑干百丈冰,愁云惨淡万里凝。\n中军置酒饮归客,胡琴琵琶与羌笛。\n纷纷暮雪下辕门,风掣红旗冻不翻。\n轮台东门送君去,去时雪满天山路。\n山回路转不见君,雪上空留马行处。",font=("Times",15,"normal"))
pen.fillcolor("red")
pen.begin_fill()
p.fillcolor("red")
p.begin_fill()
s.bgcolor("blue")
pen.goto(-150,-260)
pen.left(45)
pen.forward(2*a)
pen.circle(a,180)
pen.right(90)
pen.circle(a,180)
pen.forward(2*a)
pen.end_fill()
p.goto(150,-260)
p.left(45)
p.forward(2*a)
p.circle(a,180)
p.right(90)
p.circle(a,180)
p.forward(2*a)
p.end_fill()
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