python畫筆控制函數(shù):1.turtle.penup()函數(shù),抬起畫筆;2.turtle.pendown()函數(shù),落下畫筆;3.turtle.pensize(width)函數(shù),畫筆的寬度;4.turtle.pencolor(color)函數(shù),顏色字符串或rgb值;
python中的畫筆控制函數(shù)有以下幾種
1.penup()
turtle.penup()函數(shù)的作用是抬起畫筆,且不留下痕跡,其別名為turtle.pu();
2.pendown()
turtle.pendown()函數(shù)的作用是落下畫筆,且不留下痕跡,其別名為turtle.pd();
3.pensize()
turtle.pensize(width)函數(shù)表示的是畫筆的寬度,其別名為turtle.width(width);
4.pencolor()
turtle.pencolor(color)函數(shù)為顏色字符串或rgb值;