|
发表于 2020-9-9 13:13:06
|
显示全部楼层
- #PythonDraw.py
- import turtle as t
- t.setup(800,500,150,50)
- t.penup()
- t.fd(-350)
- t.left(90)
- t.fd(100)
- t.right(90)
- t.pendown()
- t.pencolor("gold")
- t.pensize(18)
- t.fd(80)
- t.penup()
- t.fd(-40)
- t.pendown()
- t.right(90)
- t.fd(200)
- t.penup()
- t.right(90)
- t.fd(50)
- t.pendown()
- t.right(180)
- t.fd(100)
- t.penup()
- t.fd(200)
- t.left(47)
- t.pencolor("red")
- t.pendown()
- t.fd(145)
- t.circle(70,179)
- t.right(90)
- t.circle(70,179)
- t.fd(145)
- t.left(45)
- t.penup()
- t.fd(220)
- t.left(90)
- t.fd(200)
- t.right(180)
- t.pendown()
- t.pencolor("gold")
- t.fd(130)
- t.circle(70,180)
- t.fd(130)
- t.down()
复制代码 |
评分
-
查看全部评分
|