使用PyCharm开发工具创建工程

一. 简介

前面文章实现了开发 python程序使用的 开发工具PyCharm,本文来学习使用 PyCharm开发工具创建一个 python工程。

二. 使用PyCharm开发工具创建工程

  1. 首先,打开 PyCharm开发工具,打开 "New project" 选项:

  1. 设置工程名即 Name的值,设置工程所存放的路径,这里我所设置的 "Location" 的值为 :

    D:\Learn\Codes_Learns\python_Learn

同时,下面 interpreter为 python解释器的安装路径,这里 Python version已经识别到python解释器所安装的 D盘路径了:

以上设置好后,直接选中 "create" 选项创建工程。

  1. 工程创建好后,鼠标放在工程名上,右键"New" -> "Python File",来创建一个 hello.py文件:

可以看到,在 python工程下创建了一个 hello.py文件。

可以设置字体大小:

  1. 在 hello.py文件中写入代码:

    print("Hello world!!!")
    print("加油,少年!")

  2. 选中界面上面的运行选项:

hello.python即可运行:

至此,一个简单的python工程创建完成。

加油,加油!

相关推荐
小镇敲码人3 分钟前
剖析CANN框架中Samples仓库:从示例到实战的AI开发指南
c++·人工智能·python·华为·acl·cann
萧鼎4 分钟前
Python 包管理的“超音速”革命:全面上手 uv 工具链
开发语言·python·uv
alvin_200543 分钟前
python之OpenGL应用(二)Hello Triangle
python·opengl
铁蛋AI编程实战1 小时前
通义千问 3.5 Turbo GGUF 量化版本地部署教程:4G 显存即可运行,数据永不泄露
java·人工智能·python
jiang_changsheng1 小时前
RTX 2080 Ti魔改22GB显卡的最优解ComfyUI教程
python·comfyui
0思必得02 小时前
[Web自动化] Selenium处理滚动条
前端·爬虫·python·selenium·自动化
沈浩(种子思维作者)2 小时前
系统要活起来就必须开放包容去中心化
人工智能·python·flask·量子计算
2301_790300962 小时前
Python数据库操作:SQLAlchemy ORM指南
jvm·数据库·python
m0_736919102 小时前
用Pandas处理时间序列数据(Time Series)
jvm·数据库·python
getapi2 小时前
实时音视频传输与屏幕共享(投屏)
python