Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用turtle graphics时如何重命名图形窗口?_Python_Turtle Graphics - Fatal编程技术网

Python 使用turtle graphics时如何重命名图形窗口?

Python 使用turtle graphics时如何重命名图形窗口?,python,turtle-graphics,Python,Turtle Graphics,我想在turtle graphics中提供一个特定的图形窗口标题,类似于title KJR在cmd.exe中的工作方式 我目前正在创建一个游戏,希望它能显示名字,KJR,而不是turtlegraphics 有办法做到这一点吗? 使用该函数。您应该能够使用方法来完成此操作,其中screen=turtle.screen()。

我想在turtle graphics中提供一个特定的图形窗口标题,类似于
title KJR
cmd.exe
中的工作方式

我目前正在创建一个游戏,希望它能显示名字,
KJR
,而不是
turtlegraphics

有办法做到这一点吗?


使用该函数。

您应该能够使用方法来完成此操作,其中
screen=turtle.screen()