python画昆明理工大学的校徽
时间: 2023-06-04 20:06:44 浏览: 113
好的,我可以回答这个问题。下面是 Python 代码,可以画出昆明理工大学的校徽:
``` python
import turtle
#设置画布大小和背景颜色
turtle.setup(width=550, height=550)
turtle.bgcolor("#FFFFFF")
# 画校徽
turtle.speed(6)
turtle.color("#FFC000")
turtle.begin_fill()
turtle.circle(150)
turtle.end_fill()
turtle.up()
turtle.goto(0, 75)
turtle.down()
turtle.color("#06007A")
turtle.begin_fill()
turtle.circle(75)
turtle.end_fill()
turtle.up()
turtle.goto(-95, 200)
turtle.down()
turtle.color("#06007A")
turtle.begin_fill()
turtle.circle(25)
turtle.end_fill()
turtle.up()
turtle.goto(95, 200)
turtle.down()
turtle.color("#06007A")
turtle.begin_fill()
turtle.circle(25)
turtle.end_fill()
turtle.up()
turtle.goto(0, -30)
turtle.down()
turtle.write("KUST", align="center", font=("Arial", 30, "bold"))
turtle.hideturtle()
turtle.done()
```
希望对您有帮助。
阅读全文