strokesort.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:linedraw 作者: LingDong- 项目源码 文件源码
def visualize(lines):
    import turtle
    wn = turtle.Screen()
    t = turtle.Turtle()
    t.speed(0)
    t.pencolor('red')
    t.pd()
    for i in range(0,len(lines)):
        for p in lines[i]:
            t.goto(p[0]*640/1024-320,-(p[1]*640/1024-320))
            t.pencolor('black')
        t.pencolor('red')
    turtle.mainloop()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号