python如何启动idle
python自带的集成开发环境为ide,打开ide的方式为
开始->程序->Python2.*/3.*->IDLE(PythonGUI)
如此就打开了PythonShell->File->Newwindow(Ctrl+N)
就出现了python编辑器
编写代码比如
print('HelloWorld')
然后保存文件为helloworld.py(注意记得加py扩展名,默认是不会自动加添的)。
在编辑器窗口按F5即可在PythonShell中看到结果。
以上内容为大家介绍了python培训之如何启动idle,希望对大家有所帮助,如果想要了解更多Python相关知识,请关注IT培训机构:千锋教育。

相关推荐HOT
更多>>
python流式读取大文件的两种方法
python流式读取大文件的两种方法1、使用read方法分块读取使用更底层的file.read()方法,与直接循环迭代文件对象不同,每次调用file.read(chunk_...详情>>
2023-11-14 16:48:08
pythongreenlet如何交替运行
pythongreenlet如何交替运行1、greenlet说明greenlet是一个基于Greenlet实现的网络库,它使用greenlet来实现协同程序。其基本思想是,当greenle...详情>>
2023-11-14 14:52:57
python收集参数的调用顺序
python收集参数的调用顺序本文教程操作环境:windows7系统、Python3.9.1,DELLG3电脑。1、说明收集参数,关键字参数,普通参数可以混合使用使用...详情>>
2023-11-14 13:23:09
python实例属性的优先级分析
python实例属性的优先级分析1、说明当在实例上给类属性赋值时,实际上是给这个实例绑定了同名的属性而已,并不会影响类属性和其他实例。使用实...详情>>
2023-11-14 10:17:33