Python蟒蛇绘制 MOOC 北理工 Python123

使用turtle库,绘制一个蟒蛇形状的图形。‪‬‪‬‪‬‪‬‪‬‮‬‫‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬

Python蟒蛇绘制 MOOC 北理工 Python123

import turtle as t
t.setup(800,600,150,150)
t.penup()
t.fd(-250)
t.pendown()
t.pensize(25)
t.pencolor("purple")
t.seth(-40)
for i in range(4):
    t.circle(40,80)
    t.circle(-40,80)
t.circle(40,80/2)
t.fd(40)
t.circle(16,180)
t.fd(40 * 2/3)
t.done()

题目转自:https://python123.io/index

上一篇:Docker-docker-machine


下一篇:Inductive Matrix Completion Based on Graph Neural Networks论文解读