turtle库 的常规应用函数

# https://blog.csdn.net/zengxiantao1994/article/details/76588580

import turtle
turtle.setup(a,b,c,d) #
turtle.penup()      # turtle.pu()
turtle.pendown()    # turtle.pd()
turtle.goto(x,y)    #画笔到x,y位置
turtle.pencolor(blue)
turtle.pensize()    #pen.width()
turtle.forward()    #turtle.fd()
turtle.circle(4,180)
turtle.setheading() #turtle.setd()
turtle.left()       # 向左转
turtle.right()      # 向右转
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页