Python项目开发:
下载Python:
https://www.python.org/downloads/release/python-363/
安装Python:
配置环境变量(path):
Console测试:
下载IDEA Python插件:
https://plugins.jetbrains.com/plugin/631-python
本地安装插件:
新建Python工程:
新建Python文件:
点绿箭头可以运行, 代码如下:
#! /usr/bin/env python # -*- coding: utf-8 -*- def foo(): str="function" print(str); def foo1(num): print('num' ,num); def foo2(name ,age): print('name' ,name); print('age' ,age); if __name__=="__main__": print("main") foo2('yuhui' ,30) foo1(6) foo()
运行结果: