Commit 581623f0 by BellCodeEditor

save project

parent 67db189e
Showing with 6 additions and 21 deletions
import turtle filel=open(r'C:\Users\Administrator\Desktop\book.txt'w'enconding='utf-8')
screen=turtle.Screen() filel.write('小兰:12\n')
l=screen.textinput("大小","输入数字") filel.write('小丽:11\n')
pen=turtle.Pen() filel.write('李文:9\n')
len=int(l) filel.write('张伟:16\n')
pen.penup() filel.close()
textpen.goto(100,-100)
pen.write("你好,贾维斯?",font=("Times",13,"normal"))
pen.goto(0,0)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.hideturtle()
turtle.done()
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