时间:2021-07-29 07:42:54 | 栏目:Python代码 | 点击:次
意思就是画四条直线,四条直线都不能相交即可。
#!/usr/bin/python #coding: UTF-8 import turtle import time t = turtle.Pen() for x in range(4): t.up() t.forward(25) t.down() t.forward(100) t.up() t.forward(25) t.down() t.left(90) time.sleep(3)
执行结果见下图
