turtle

安装(py2.7)

sudo apt install python-tk

直走

左转90度

import turtle
t=turtle.Pen()
for i in range(0,4):
    t.forward(100)
    t.left(90)

posted @ 2019-05-23 10:33  浮沉沉浮  阅读(275)  评论(0编辑  收藏  举报