Commit 5ca74380 by BellCodeEditor

save project

parent a1e2a25a
Showing with 19 additions and 7 deletions
import turtle
screen = turtle.Screen()
pen = turtle.Pen()
screen.bgcolor("light blue")
pen.up()
pen.write("你好",font=("Times",50,"normal"))
pen.hideturtle()
turtle.done()
\ No newline at end of file
screen = turtle.Screen()
screen.bgcolor("white")
def card(size,color,say):
pen.penup()
pen.goto(-200,-100)
pen.write(say)
pen.left(45)
pen.fillcolor(color)
pen.begin_fill()
pen.forward(size)
pen.circle(size/2,180)
pen.right(90)
pen.circle(size/2,180)
pen.forward(size)
pen.end_fill()
pen.hideturtle()
turtle.done()
card(200,"green","wukongnizhenchou")
\ 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