python中unexpected indent是什么意思_python3:unexpected indent?indent expected?autopep8!

unexpected indent 实在是无法忍受

Win键(就是windows图标那个键)+R 呼出CMD命令行工具(powershell也行):

linux+mac一样呼出终端工具

pip install autopep8

在Pycharm的tools中添加autopep8

File -> Settings (快捷键Ctrl + Alt + S) - > Tools -> External Tools -> 点+号

Name:autopep8

Programs:autopep8(前提是你已经安装了哦)

Arguments:--in-place --aggressive --aggressive $FilePath$

Working directory:$ProjectFileDir$

Output Filters:$FILE_PATH$\:$LINE$\:$COLUMN$\:.*

使用pep8遇到de问题

执行External Tools=》autopep8

3:46Error running 'autopep8': Cannot run program "autopep8" (in directory "F:\PycharmProjects\untitled"): CreateProcess error=2, 系统找不到指定的文件。

Programs那autopep8写exe文件的绝对路径就好了

还解决不了怎么办?

def get_info():

url = ?

↑ 你肯定是这种忘记缩进了

def get_info():

url = ?

↑ 要像这样缩进

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值