我写Python用的是idea,因为idea很强大(主要是不习惯其他开发工具)

1.打开idea --> File --> Settings --> Plugins --> 搜索Python插件 -->Installed

安装完成后,会发现可以创建Python project,但没有SDK

2.配置SDK

按操作配置完成后需要配置环境变量:

3.创建Python项目:FIle > New > project > Python

      创建完成后,右击项目  > New > Pythone Package,会创建Python包并生成默认的init文件

        结构:

         

idea编辑python代码 idea可以编写python_python

 

        在_init_.py写入打印代码:print("hello World!")

        右击 > Run '_init_.py'

Python配置与第一个Python项目运行完成