python解释器和Pycharm编辑器安装使用完整详细教程
2021/10/23 14:11:10
本文主要是介绍python解释器和Pycharm编辑器安装使用完整详细教程,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
一、官网下载或软件管家公众号下载
https://www.python.org/
二、安装Python解释器
python解释器:对输入的python代码进行解释和执行
1、选择自定义安装并添加到环境变量
2、检验Python是否安装成功
python --version或python -V
三、安装pycharm编辑器
编辑器:写代码的工具
1、点击安装,修改安装路径,建议安装C盘以外位置,修改好以后,点击Next。
2、建议不选择.py选项,这是关联文件,如果打钩了,以后电脑双击.java文件就会用它打开。
3、接下来点击Install,出现安装界面。
4、配置pycharm环境
右击电脑属性,找到高级系统设置
5、添加到系统变量里面的Path
双击编辑,点击新建,将pycharm程序路径(桌面右键图标-打开文件的所在位置)复制粘贴,最后点击“确定”。
四、使用pycharm
1、激活码网站:
http://idea.javatiku.cn/
验证码:1567
激活码:
FU48Z7YY4K-eyJsaWNlbnNlSWQiOiJGVTQ4WjdZWTRLIiwibGljZW5zZWVOYW1lIjoi5r+A5rS75p2l5rqQIGlkZWHCt2phdmF0aWt1wrdjbiIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyMi0wNS0yNyIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMjItMDUtMjciLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDIyLTA1LTI3IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAyMi0wNS0yNyIsImV4dGVuZGVkIjpmYWx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BQcDATALBgNVHQ8EBAMCBaAwDQYJKoZIhvcNAQELBQADggIBAB2J1ysRudbkqmkUFK8xqhiZaYPd30TlmCmSAaGJ0eBpvkVeqA2jGYhAQRqFiAlFC63JKvWvRZO1iRuWCEfUMkdqQ9VQPXziE/BlsOIgrL6RlJfuFcEZ8TK3syIfIGQZNCxYhLLUuet2HE6LJYPQ5c0jH4kDooRpcVZ4rBxNwddpctUO2te9UU5/FjhioZQsPvd92qOTsV+8Cyl2fvNhNKD1Uu9ff5AkVIQn4JU23ozdB/R5oUlebwaTE6WZNBs+TA/qPj+5/wi9NH71WRB0hqUoLI2AKKyiPw++FtN4Su1vsdDlrAzDj9ILjpjJKA1ImuVcG329/WTYIKysZ1CWK3zATg9BeCUPAV1pQy8ToXOq+RSYen6winZ2OO93eyHv2Iw5kbn1dqfBw1BuTE29V2FJKicJSu8iEOpfoafwJISXmz1wnnWL3V/0NxTulfWsXugOoLfv0ZIBP1xH9kmf22jjQ2JiHhQZP7ZDsreRrOeIQ/c4yR8IQvMLfC0WKQqrHu5ZzXTH4NO3CwGWSlTY74kE91zXB5mwWAx1jig+UXYc2w4RkVhy0//lOmVya/PEepuuTTI4+UJwC7qbVlh5zfhj8oTNUXgN0AOc+Q0/WFPl1aw5VV/VrO8FCoB15lFVlpKaQ1Yh+DVU8ke+rt9Th0BCHXe0uZOEmH0nOnH/0onD
2、第一次使用,选择创建新项目“New Project”。
3、修改项目存放目录,建议C盘以外,其它默认即可,“LX”是我定义的项目名称。
4、选中项目名称LX,点击鼠标“右键”,选择“New”,然后选择“Python File”
5、pycharm整体界面
6、界面设置
6.1、更改字体
6.2、添加新的模块
如果我们需要添加新的模块,点击左上角File,进入Settings,展开Project;untitled,点击Project Interpreter,点击绿色+号,然后直接搜索
例:安装lxml模块
6.3、设置文件demo
进入Settings,展开Editor,点击Code style,点击file and code,然后右边选择file下的python script
展示内容可以自己编辑:
点击查看代码
#-*- codeing = utf-8 -*- #@Time : ${DATE} ${TIME} #@Author : 名字 #@File : ${NAME}.py #@Software ${PRODUCT_NAME}
这篇关于python解释器和Pycharm编辑器安装使用完整详细教程的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-26Python基础编程
- 2024-11-25Python编程基础:变量与类型
- 2024-11-25Python编程基础与实践
- 2024-11-24Python编程基础详解
- 2024-11-21Python编程基础教程
- 2024-11-20Python编程基础与实践
- 2024-11-20Python编程基础与高级应用
- 2024-11-19Python 基础编程教程
- 2024-11-19Python基础入门教程
- 2024-11-17在FastAPI项目中添加一个生产级别的数据库——本地环境搭建指南