---恢复内容开始---
刚开始学python的小白,解释器的选择pycharm为不二选择,
pycharm的基本是使用:
1:在Pycharm下为你的Python项目配置python解释器
1.project:当前项目名>project interpreter >add local
2.在Pycharm下创建python文件,python模块
1.File>new>python file
2.file >new >python package
3.使用Pycharm安装python第三方模块
1.project:当前项目名>project interpreter >点击右侧绿色小加号
4.pycharm的基本设置,例如不适用tab,tab=4空格,字体,字体颜色,主题,脚本设置。。
1.设置菜单字体大小:appearance&Behavior >appearance
2.设置console&terminal字体大小:Editor>colors&Fonts>console Font
3.设置文件编码:editor> File enciding IDE encoding;properties file都设置为UTF-8
4.修改背景颜色:Seting>editor >color&Font >general >右边text下面选择Default text >修改Background颜色即可
5.不使用Tab,Tab=4空格:Editor >Code Style >python
6.字体,字体颜色:Edit>colors >python
7.关闭自动更新:appearance &behavior >system setting >updates $
8.脚本头设置:EDIT >file and code Templates >python scrip
1.控制光标位置:#[[$END$]]# 勾选Enable live Templates
2.其他类似
9.显示行号:Edit >file >General >Appearance >show line number
10:右侧竖线是PEP8的代码规范
5.常用的快捷方式
1.Ctrl+D 复制当前行
2.Ctrl+E 删除当前行
3.Shirt +Enter :快速换行
4.Ctrl +|/ :快速注释
5:Tab 缩进
6:shirt +tab 取消缩进
7:Ctrl +F 查找
8:Ctrl +H :替换
9:Ctrl+ + ;折叠当前代码快
10;Ctrl + - :折叠当前文件
---恢复内容结束---