Commit 9c9eaf03 by BellCodeEditor

save project

parent ba2ad5e8
Showing with 5 additions and 20 deletions
import turtle bro=["刘备","关羽","张飞"]
screen=turtle.Screen() bro[0]="关羽"
screen.bgcolor("green") bro[1]="刘备"
pen=turtle.Pen() print(bro)
pen.penup() \ No newline at end of file
pen.goto(100,-100)
pen.write("凉州词\n[唐]王翰\n葡萄美酒夜光杯,\n欲饮琵琶马上催。\n醉卧沙场君莫笑,\n古来征战几人回?\n\n\n人非生而知之者,\n孰能无惑?——韩愈",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.hideturtle()
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