2020
10-08
10-08
Python turtle库的画笔控制说明
turtle.penup()别名turtle.pu():抬起画笔海龟在飞行turtle.pendown()别名turtle.pd():画笔落下,海龟在爬行turtle.pensize(width)别名turtle.width(width):设置画笔的宽度,海龟的腰围turtle.pencolor(color)color为颜色字符串或r,g,b值:颜色字符串:turtle.pencolor("red")RGB的小数值:turtle.pencolor(0.63,0.13,0.94)RGB的元组值:turtle.pencolor((0.63,0.13,0.94))运动控制函数:turtle.forward(...
继续阅读 >