screensize
时间: 2024-03-31 17:09:28 浏览: 130
screensize是一个用于定义画布大小和背景颜色的参数。在Python中,可以使用turtle模块的screensize()函数来设置画布的大小。例如,使用tu.screensize(500, 500, bg='lightblue')可以将画布的宽度设置为500像素,高度设置为500像素,并将背景颜色设置为浅蓝色。这样设置后,画布的尺寸将大于窗口尺寸,并且可以使用tu.mainloop()函数来显示画布。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [屏幕尺寸「Screen Size」-crx插件](https://download.csdn.net/download/weixin_38632624/16002897)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Python设置画布大小_turtle.screensize改变不了窗口大小?](https://blog.csdn.net/weixin_39593469/article/details/109955894)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [turtle库中setup、screensize、setworldcoordinates 的详细解释](https://blog.csdn.net/weixin_42146296/article/details/103586148)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文