Commit a06785a5 by BellCodeEditor

save project

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