notepad++ 中如何自动运行python代码

时间:2024-10-20 06:47:40

1、首先打开notepad++,并写上任意的python代码,下图代码为创建一张绿色的图片。

notepad++ 中如何自动运行python代码

2、按f5键弹出运行窗口。

notepad++ 中如何自动运行python代码

3、复制 cmd /kpython "$(FULL_CURRENT_PATH)" & PAUSE & EXIT 到运行窗口中。

notepad++ 中如何自动运行python代码

4、点击运行按钮,运行程序。

notepad++ 中如何自动运行python代码

5、python直接运行,效果如下图。

notepad++ 中如何自动运行python代码
© 手抄报圈