关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
小新不需要蜡笔
2023-02-08 20:49
采纳率: 40%
浏览 35
首页
编程语言
已结题
python报错#IndentationError: unexpected indent#
python
有人知道这个是怎么回事吗?
python运行的时候报错
IndentationError: unexpected indent
收起
写回答
好问题
0
提建议
关注问题
微信扫一扫
点击复制链接
分享
邀请回答
编辑
收藏
删除
收藏
举报
4
条回答
默认
最新
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
一花一草皆风景
2023-02-08 21:05
关注
图中圆圈部分换行,‘’‘影响了代码运行
本回答被题主选为最佳回答
, 对您是否有帮助呢?
本回答被专家选为最佳回答
, 对您是否有帮助呢?
本回答被题主和专家选为最佳回答
, 对您是否有帮助呢?
解决
1
无用
评论
打赏
微信扫一扫
点击复制链接
分享
举报
编辑记录
评论
按下Enter换行,Ctrl+Enter发表内容
查看更多回答(3条)
向“C知道”追问
报告相同问题?
提交
关注问题
python
出现"
Indentation
Error
:
unexpected
ind
ent
"错误解决办法
2020-09-21 03:20
在
Python
编程过程中,经常会遇到一个与代码格式相关的错误:“
Indentation
Error
:
unexpected
ind
ent
”。这种错误通常出现在代码块的缩进不一致时,比如在函数定义或循环结构内的代码缩进出现问题。
Python
是一种解释...
Python
报错
Indentation
Error
:
unexpected
ind
ent
2024-07-19 19:36
二川bro的博客
Python
报错
Indentation
Error
:
unexpected
ind
ent
【
Python
】解决
Python
报错
:
Indentation
Error
:
unexpected
ind
ent
2024-05-29 20:32
I'mAlex的博客
解决
Python
报错
:
Indentation
Error
:
unexpected
ind
ent
【
Python
报错
已解决】
Indentation
Error
:
unexpected
ind
ent
2024-09-24 00:21
鸽芷咕的博客
然而,如果在代码中缩进不一致或者有错误,
Python
解释器将会抛出`
Indentation
Error
:
unexpected
ind
ent
`错误。这个错误通常发生在代码块开始或结束时,缩进不符合
Python
的缩进规则。本文将探讨这个错误的原因,并给...
Python
中的
Indentation
Error
:
unexpected
ind
ent
错误
2025-08-12 22:38
iqjkq42958的博客
Indentation
Error
:
unexpected
ind
ent
是
Python
中常见的缩进错误,表示代码。记住,
Python
使用缩进来定义代码块结构,而不是像其他语言使用大括号,因此正确的缩进对
Python
至关重要。print("World") # 这行缩进...
python
报错
:
Indentation
Error
:
unexpected
ind
ent
2023-11-16 21:18
日月走云的博客
Ctrl + Alt + L 一起按。
python
出现”
Indentation
Error
:
unexpected
ind
ent
”错误解决办法
2020-12-25 07:15
python
出现”
Indentation
Error
:
unexpected
ind
ent
”错误解决办法
Python
是一种对缩进非常敏感的语言,最常见的情况是tab和空格的混用会导致错误,或者缩进不对 如下图中的代码: 以上代码中第一次运行可以正常...
python
运行过程中出现
Indentation
Error
:
unexpected
ind
ent
报错
2024-11-03 11:27
Duty_汪同学的博客
很多刚接触
python
小伙伴会遇到运行过程中出现
Indentation
Error
:
unexpected
ind
ent
报错
问题。主要出现在首行代码运行过程中有出现空格或者tab缩进,清除空格即可。ps:单行代码运行过程中,不要出现以上问题即可。...
Python
报错
:
Indentation
Error
:
unexpected
ind
ent
问题的解决办法及原因
2021-12-23 19:35
任聪聪的博客
本篇文章主要讲解 :
Indentation
Error
:
unexpected
ind
ent
报错
的原因及解决办法 日期:2021年12月23日 作者:任聪聪
报错
现象 执行代码后发现如下
报错
,不要慌,问题不大! 这个英文
报错
的大意为:缩进错误:意外...
python
报错
:
Indentation
Error
:
unexpected
ind
ent
2022-01-10 15:50
归去来?的博客
运行一段
python
脚本时,
报错
:
Indentation
Error
:
unexpected
ind
ent
产生原因:
python
脚本中空格和tab字符看起来是一样,但是程序运行又不一样,这样就会
报错
; 解决办法: 1、前面的空格可能是中文空格,应该改成...
Python
报错
——
Indentation
Error
:
unexpected
ind
ent
2022-04-23 00:20
Netceor的博客
缩进问题,
Python
有严格的缩进规定,缩进空格相同代表并列。 原因一: 并列语句被缩进 # 错误示范 a=1 b=2 # 正确写法 a=1 b=2 原因二: 上下级关系无缩进 # 错误示范 if a==1: print(a) # 正确写法 if a==1...
一直
报错
Indentation
Error
:
unexpected
ind
ent
2023-01-17 17:44
绿啦啦啦啦的博客
以以上爬虫为例,明显没有缩进错误的情况下,却一直报缩进错误! 我试了所有方法,用tab缩进,英文空格等 最后解决的办法是卸载requests库,重新安装requests库,就可以运行成功了! (一个小时下来的成果) ...
Python
报“
Indentation
Error
:
unexpected
ind
ent
”问题解决
2023-10-13 15:00
Mortalz7的博客
Indentation
Error
:
unexpected
ind
ent
Indentation
Error
:
unexpected
ind
ent
异常的正确解决方法
2024-04-28 05:34
飞码创造者的博客
Indentation
Error
:
unexpected
ind
ent
异常的正确解决方法
python
提示
Indentation
Error
:
unexpected
ind
ent
错误
2023-02-15 10:43
dotey_zm的博客
Indentation
Error
ArcGIS的
python
脚本工具
报错
:
Indentation
Error
:
unexpected
ind
ent
解决方案
2021-10-05 17:24
学懵了的博客
Indentation
Error
:
unexpected
ind
ent
。 上图来自于百度经验的一篇文章。因为当时没截图,懒得再重现这个问题。。。 寻找解决方案 代码缩进问题 在百度上搜索这个
报错
,大多数回答都是叫你查找代码中的缩进...
python
:
Indentation
Error
:
unexpected
ind
ent
2024-01-26 22:07
果咩那塞的博客
入门
python
遇到的错误
Indentation
Error
:
unexpected
ind
ent
错误,错误使用多行注释引起的意外缩进
报错
2025-06-22 17:43
666月明飞锡下天风的博客
作为
python
初学者,在学习过程中犯了一个低级错误,即多行注释的错误使用问题,将"""..."""多行注释注释的内容直接放在了定义方法代码的同一行,导致出现了
Indentation
Error
:
unexpected
ind
ent
意外缩进的问题。...
pyminifier加密方法加密
Python
代码
报错
Indentation
Error
:
unexpected
ind
ent
2022-06-06 14:01
孝正123的博客
将使用 pyminifier 方法加密的
Python
代码放在 PyCharm 运行后,出现如下错误: 这种错误常常出现在缩进不规则的时候运行py文件,提示:...[1]
Python
错误集锦:
Indentation
Error
:
unexpected
ind
ent
2020.8.........
没有解决我的问题,
去提问
向专家提问
向AI提问
付费问答(悬赏)服务下线公告
◇ 用户帮助中心
◇ 新手如何提问
◇ 奖惩公告
问题事件
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
已结题
(查看结题原因)
2月9日
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
已采纳回答
2月8日
关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
创建了问题
2月8日