如何用python IDLE编写一个程序呢?今天一起来看一下吧 。

方法
在开始菜单栏中打开python IDLE
进入后可以直接在里面输入公式如2+2回车即可得到结果

点击上方file选择new file创建一个文件

效果如图所示,即可出现untitle命名的文件 。

比如想输出一个hello word 在里面打上代码:“print(“hello world”)”

然后点击file——save进行保存

输入文件名点击保存即可

点击上方run——module

效果如图所示即可运行程序 。
【如何用python IDLE编写一个程序,如何用python编写病毒】
