File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,6 +338,8 @@ msgid ""
338338" converted to a number and dispatched to the turtle module. The docstring "
339339"is used in the help utility provided by the shell."
340340msgstr ""
341+ "基础的 turtle 命令比如 :meth:`~turtle.forward` 被添加进一个 :class:`Cmd` 子类,方法名为 "
342+ ":meth:`do_forward` 。参数被转换成数字并且分发至 turtle 模组中。 docstring 是 shell 提供的帮助实用程序。"
341343
342344#: ../../library/cmd.rst:239
343345msgid ""
@@ -347,10 +349,12 @@ msgid ""
347349":meth:`do_playback` method reads the file and adds the recorded commands to "
348350"the :attr:`cmdqueue` for immediate playback::"
349351msgstr ""
352+ "例子也包含使用 :meth:`~Cmd.precmd` 方法实现基础的记录和回放的功能,这个方法负责将输入转换为小写并且将命令写入文件。 "
353+ ":meth:`do_playback` 方法读取文件并添加记录命令至 :attr:`cmdqueue` 用于即时回放::"
350354
351355#: ../../library/cmd.rst:320
352356msgid ""
353357"Here is a sample session with the turtle shell showing the help functions, "
354358"using blank lines to repeat commands, and the simple record and playback "
355359"facility:"
356- msgstr ""
360+ msgstr "这是一个示例会话,其中 turtle shell 显示帮助功能,使用空行重复命令,以及简单的记录和回放功能: "
You can’t perform that action at this time.
0 commit comments