Commit c74626a3 by BellCodeEditor

save project

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