Commit 5ca74380 by BellCodeEditor

save project

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