腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Python
AttributeError
:“
NoneType
”
对象
没有
属性
getText
、
、
我是
python
的新手,我遇到错误:"'
NoneType
‘
对象
没有
getText
属性
。“我正在使用Requests和BeautifulSoup库。html.parser') content.
getText
浏览 9
提问于2020-11-01
得票数 0
1
回答
如何解决调用防火墙客户端时的grpc错误
、
、
、
AttributeError
: '
NoneType
' object has no attribute 'from_call' at .from_
浏览 13
提问于2022-08-24
得票数 0
3
回答
我正在尝试执行自定义yolov5
对象
检测模型。我正面临着以下错误
、
追溯(最近一次调用):文件"C:\Users\Bhavesh\AppData\Local\Programs\
Python
\
Python
310\lib\site-packages\torch\multiprocessing\reductions.py",第36行,在del File "C:\Users\Bhavesh\AppData\Local\Programs\
Python
\
Python
310\lib\site-packages\torch\storage.py",第520行中,在_
浏览 7
提问于2022-04-06
得票数 1
2
回答
tf.keras在训练过程中得到计算梯度
、
、
、
outputs=grads) # <-- Error Here~\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\
python
visited_ops = set([x.op for x in sources]) 316
AttributeError
: '
NoneType
' object has no attribu
浏览 4
提问于2019-12-12
得票数 1
回答已采纳
4
回答
Python
:'
NoneType
‘
对象
没有
’
AttributeError
‘
属性
、
、
、
、
Traceback (most recent call last):print(df.head(5))File "C:\
Python
34\lib\site-packages\pandas\core\frame.py", line 582, in __unicode__ width, _ = console.get_console_size(
浏览 1
提问于2017-10-05
得票数 2
1
回答
BS4 (BeautifulSoap) -
AttributeError
:'
NoneType
‘
对象
没有
'
getText
’
属性
、
、
我正在尝试创建一个Amazon页面的抓取,以捕获产品的名称和价格,但当我尝试运行它时,我总是得到错误:我发现奇怪的是我已经用了几秒钟的时间尝试使用time.sleep来规避这个问题,但是
没有
成功……import requestsfrom bs4 import BeautifulSoup= BeautifulSoup(page.content,
浏览 0
提问于2020-12-14
得票数 0
2
回答
AttributeError
出现奇怪的错误:'
NoneType
‘
对象
没有
'
getText
’
属性
、
、
main_div.find_all("li") cmp = element.find("div", { "class" : "channel" } ).
getText
html) cmp = element.find("div", { "class" : "channel&qu
浏览 0
提问于2013-04-16
得票数 0
回答已采纳
2
回答
Python
:
AttributeError
:'
NoneType
‘
对象
没有
属性
我找到的唯一示例是
Python
,如下所示:from bs4 import BeautifulSoup print(f"Current {symbol:<4} stock price is {stock_price(symbol):>8}")因此,我已经安装了所需的库:
p
浏览 7
提问于2022-01-15
得票数 -1
2
回答
Python
:
NoneType
对象
没有
‘
AttributeError
’
属性
、
、
我正在学习
python
,我写了一个脚本,可以将一个文本文件的内容复制到另一个文本文件中。out_file = open(argv[2], 'w').write(open(argv[1]).read())我会将
AttributeError
为什么我在open(argv2,'w')上调用write方法时,
没有
为out_file分配文件类型? 提前谢谢你
浏览 2
提问于2014-07-26
得票数 4
回答已采纳
2
回答
AttributeError
:'
NoneType
‘
对象
没有
属性
'strftime'
AttributeError
:'
NoneType
’
对象
没有
属性
'strftime‘
、
我得到了"
AttributeError
:'
NoneType
‘
对象
没有
属性
'strftime'
AttributeError
:'
NoneType
’
对象
没有
属性
'strftime'“的错误。ipython-input-96-a5697ab98b57> in <module> ----> 1 client.whois(domains
浏览 26
提问于2022-07-16
得票数 0
1
回答
使用BeautifulSoup
AttributeError
进行
Python
抓取:'
NoneType
‘
对象
没有
属性
'text’
、
、
我不知道为什么要收到错误消息
AttributeError
:'
NoneType
‘
对象
在使用BeautifulSoup在WebScraping上运行
Python
2中的代码时
没有
属性
'text’?错误信息:在()
AttributeError
:'
NoneType
‘
对象
<
浏览 0
提问于2019-01-09
得票数 2
回答已采纳
1
回答
我不能使用pywinauto库,说失败:
AttributeError
:'
NoneType
‘
对象
没有
属性
'Get’
、
、
、
我正在使用Ride机器人框架- Automation (应用程序窗口桌面)我不能使用pywinauto库,说失败:
AttributeError
:'
NoneType
‘
对象
没有
属性
'Get’Library ../../../../
Python</
浏览 8
提问于2020-06-16
得票数 0
1
回答
AttributeError
:'
NoneType
‘
对象
没有
属性
'userprofile’
、
、
我不断地犯这个错误,我有点被困住了。我知道这与最后一段代码有关,但除此之外,我很困惑,我不太确定如何修复它/实现修复。 self.pages.addWidget(self.AutojoinMemosPanel) from PyQt4 import QtGui class MemoEntr
浏览 2
提问于2013-07-09
得票数 1
1
回答
如何在BeautifulSoup中捕获此异常
、
可能重复: for item in soup.find(id="start_dateid").find_all('option'):问题是当页面
没有
id="start_dateid“时,会生成一个错误:
A
浏览 4
提问于2012-12-09
得票数 0
回答已采纳
1
回答
OpenCV、Raspberry Pi-3 -
属性
错误- '
NoneType
‘
对象
、
、
、
我一直遇到一个形状:'
NoneType
‘
对象
没有
’
AttributeError
‘
属性
File "/home/pi/ball-track/ball_tracking.py",line 52, in <module> File "/usr/local/lib/<e
浏览 5
提问于2016-09-07
得票数 0
回答已采纳
2
回答
NoneType
:“
AttributeError
”
对象
没有
属性
“
NoneType
”
、
我正在使用
Python
开发一个不和谐的机器人。并得到以下错误(条带:'
NoneType
‘
对象
没有
’
AttributeError
‘
属性
)。这是我的代码。
浏览 30
提问于2021-04-15
得票数 1
1
回答
AttributeError
:'
NoneType
‘
对象
没有
属性
’
NoneType
‘
、
、
、
、
df.withColumn("capital_names",udf_capital("names")) 在运行代码时,当我试图显示结果的dataframe时,会得到一个错误:然而,我已经检查了我的dataframe的模式和列“名称”是StringType,我如何解决这个问题?
浏览 4
提问于2021-01-05
得票数 3
回答已采纳
2
回答
Python
-
AttributeError
:'
NoneType
‘
对象
没有
'findAll’
属性
、
、
、
我已经编写了我的第一个
python
代码来抓取一个网站。当我在名为pyCharm的ide中本地测试它时,它工作得很好,但当我在运行CentOS的服务器上尝试它时,我得到了以下错误: File "scraper.py", line 8, in <module>
Attri
浏览 0
提问于2013-08-06
得票数 4
回答已采纳
2
回答
python
AttributeError
:'
NoneType
‘
对象
没有
'createSession’
属性
、
这段代码如下所示,它是一个
python
脚本
AttributeError
: '
NoneType
' object has no attribute 'createSession 我正在考虑用下面的代码替换上面的代码
浏览 0
提问于2013-11-16
得票数 1
1
回答
Python
:
AttributeError
:'
NoneType
‘
对象
没有
'split’
属性
、
、
、
、
我试图在上面给出的beautifulsoup.The代码的帮助下做html解析,但却抛出了
属性
错误。可能的问题是什么?如果可能的话,请帮助我。
浏览 0
提问于2016-02-14
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券