Commit ab4f0ad2 by BellCodeEditor

save project

parent a50ceeec
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import random
import turtle
screen=turtle.Screen()
screen.bgcolor("light green")
pen=turtle.Pen()
list=[12,99,33,123,313,223,318]
len=random.choice(list)
pen.write("你好,\n诺大聪明。\n好久不见。",font=("Microsoft Yahei",30,"bold"))
penplus=turtle.Pen()
penplus.penup()
penplus.goto(1000,0)
penplus.pendown()
penplus=turtle.Pen()
penplus.left(135)
penplus.circle(len,180)
penplus.forward(2*len)
penplus.left(90)
penplus.forward(2*len)
penplus.circle(len,180)
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