Pycharm使用教程

参考文章

mac下PyCharm的简单使用教程
Windows下pycharm基础使用方法

PyCharm下载

下载地址

PyCharm 导入第三方库或者模块

1、 命令窗口操作(⚠️:把当前目录切换到Python的安装目录)

pip install tqdm

⚠️(1)import tqdm导入东西时需要加入模块名tqdm的限定
(2)from tqdm import *:不需要

2、界面操作

点击“File”—>“Settings”—>找到自己文件下的“Project Interpreter”---->点击最右边的“+”—>在搜索框中输入要导入的库名称---->点击“Install Package”。
在这里插入图片描述
在这里插入图片描述

3. 界面内根据提示添加

百度经验

⚠️错误:【No Python interpreter configured for the project】

解决方法:添加Python interpreter
在这里插入图片描述
选择“Show All”
选择“Show All”

⚠️错误:TypeError: ‘module’ object is not callable

解决方法:使用from tqdm.autonotebook import tqdm
或者from tqdm import *

Pycharm代码格式化快捷键即其设置

  • windows : ctrl+alt+L
  • Mac: command+option+L

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值