【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(三)

简介: 【开发环境】Windows 安装 PyCharm 开发环境 ( 下载 PyCharm | 安装 PyCharm | 在 PyCharm 中创建 Python 工程 )(三)

设置 Python 工程代码位置 , 以及使用的 SDK 版本 ;


image.png


自动生成的默认代码 ;

image.png



点击代码中 main 函数入口 if __name__ == '__main__': 前的运行按钮 , 选择 " Run ‘main’ " 选项 , 即可运行该 Python 程序 ;

image.png



运行结果如下 :

image.png


目录
相关文章
|
1天前
|
Ubuntu Python
Ubuntu 安装Python3.8
Ubuntu 安装Python3.8
10 0
|
9天前
|
Linux Python Windows
Python虚拟环境virtualenv安装保姆级教程(Windows和linux)
Python虚拟环境virtualenv安装保姆级教程(Windows和linux)
|
9天前
|
机器学习/深度学习 数据可视化 数据挖掘
Python绘图工具Matplotlib安装与使用,快速上手
Python绘图工具Matplotlib安装与使用,快速上手
|
10天前
|
Linux Python Windows
python安装pytest
【4月更文挑战第22天】
29 5
|
11天前
|
C++ Python
python安装HLL报错unable to find vcvarsall.bat
通过上述方法之一,你应该能够解决"unable to find vcvarsall.bat"的错误,并成功安装HLL或其他需要编译的Python扩展。确保在安装之前先安装了Visual C++构建工具。
10 0
|
12天前
|
机器学习/深度学习 TensorFlow API
Python安装TensorFlow 2、tf.keras和深度学习模型的定义
Python安装TensorFlow 2、tf.keras和深度学习模型的定义
|
14天前
安装OpenCV-Python
安装OpenCV-Python
43 1
|
14天前
|
机器学习/深度学习 人工智能 运维
Python从入门到精通:1.1.2了解Python基本概念与安装Python环境
Python从入门到精通:1.1.2了解Python基本概念与安装Python环境
|
15天前
|
IDE Linux 开发工具
Python安装与配置
Python安装与配置
30 0
|
15天前
|
安全 开发工具 git
Windows11搭建Python环境(2)- Anaconda虚拟环境中安装Git
Windows11搭建Python环境(2)- Anaconda虚拟环境中安装Git
21 0