Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/300.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.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终端设置_Python_Powershell_Terminal - Fatal编程技术网

艰难地学习Python终端设置

艰难地学习Python终端设置,python,powershell,terminal,Python,Powershell,Terminal,因此,我试图将终端与Notepad++结合起来进行设置,我有点困惑。我已经设法下载了Python2.7,并将其加载到Powershell中,但我真的不知道从那里可以走到哪里。我甚至需要使用终端吗?我知道上面说你不能使用IDLE,但这会容易得多。如果有人能指导我通过正确的设置继续这本书,我会非常感激 如果您成功地在powershell中运行python,并阅读了初学者警告部分,则可以继续练习1 他们为什么推荐这种设置?Notepad++在Windows上是一个功能强大的文本编辑器,与其他文本编辑器

因此,我试图将终端与Notepad++结合起来进行设置,我有点困惑。我已经设法下载了Python2.7,并将其加载到Powershell中,但我真的不知道从那里可以走到哪里。我甚至需要使用终端吗?我知道上面说你不能使用IDLE,但这会容易得多。如果有人能指导我通过正确的设置继续这本书,我会非常感激

如果您成功地在powershell中运行python,并阅读了初学者警告部分,则可以继续练习1

他们为什么推荐这种设置?Notepad++在Windows上是一个功能强大的文本编辑器,与其他文本编辑器非常相似,因此您很快就会熟悉它。您需要将脚本保存在文件中,并在powershell中键入一行特殊代码来运行和测试脚本。这样,您将习惯于使用参数运行程序,如果出现故障,您可以编辑代码、保存代码并再次运行


在IDLE中,您已经处于Python环境中,因此您不能为其中的程序提供参数,实际上可以,但这很复杂。您还可以获取编辑器、保存文件并运行脚本,但在这里,这是一种比Notepad++更难、更不明显的方法。当你对书中的环境感到满意时,你可能会改变,以获得更适合你的工作方式。

不过我现在有点不确定该怎么办。我会忘记Powershell,只使用cmd.exe-我认为附录中有这样做的内容。这意味着您接下来需要做的就是下载并安装一个编辑器,比如Notepad++。我相信它有一个扩展,可以使用您安装的Python作为Python程序运行当前文件。安装编辑器后,您应该可以开始了。