Commit a06785a5 by BellCodeEditor

save project

parent 5ca74380
Showing with 7 additions and 5 deletions
......@@ -2,10 +2,12 @@ import turtle
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("white")
def card(size,color,say):
def card(size,color,say,saysize):
pen.penup()
pen.goto(-200,-100)
pen.write(say)
pen.goto(200,-100)
pen.write(say,font=("Times",saysize,normal))
pen.penup()
pen.goto(0,0)
pen.left(45)
pen.fillcolor(color)
pen.begin_fill()
......@@ -17,4 +19,4 @@ def card(size,color,say):
pen.end_fill()
pen.hideturtle()
turtle.done()
card(200,"green","wukongnizhenchou")
\ No newline at end of file
card(200,"green","悟空你帅,但不完全帅",100)
\ 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