turtle.pensize
时间: 2023-11-11 19:05:46 浏览: 261
turtle.pensize(width)或turtle.width(width)是Turtle图形库中用于设置画笔宽度的函数。通过传入一个数值作为参数,可以设置画笔的宽度,取值范围从1到无穷大。例如,使用turtle.pensize(10)将画笔的宽度设置为10。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [python turtle库简易入门操作](https://download.csdn.net/download/weixin_46147356/12239642)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [python练习实战(五)-turtle库的使用](https://blog.csdn.net/weixin_45573296/article/details/124032331)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Python绘图Turtle库详解](https://blog.csdn.net/lost0910/article/details/104854898)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文