[英]How to rename the graphics window when using turtle graphics?
我想在海龟图形中提供一个特定的图形窗口标题,类似于title KJR
在cmd.exe
。
我目前正在创建一个游戏,并希望它显示名称KJR
,而不是turtle graphics
。
有没有办法做到这一点?
....
使用title()
函数。
只需使用这个:
turtle.screen.title("Custom title")
使用 title("自定义标题") 函数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.