腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
在
python
中
,'
NoneType
‘
对象
没有
'
write
’
属性
python
in x: wav_file.close() 我得到的错误如下: AttributeError: '
NoneType
' object has no attribute '
write
' 我搞不懂这个问题,你能帮帮我吗?
浏览 8
提问于2020-01-01
得票数 0
回答已采纳
1
回答
如何解决调用防火墙客户端时的grpc错误
python
、
google-app-engine
、
google-cloud-firestore
、
fastapi
我
在
应用程序引擎上托管了一个fastAPI api。它使用防火墙客户端调用防火墙。有时,有些调用(50次
中
的1次)由于此错误而失败: at ._parse_grpc_error_details ( /layers/google.
python
.pip/pip
浏览 13
提问于2022-08-24
得票数 0
4
回答
NoneType
‘
对象
没有
属性
’圆形‘
python
cm = int(input("
Write
height in Centimeters:"))feet = 0.0328*cm print(("The length
浏览 5
提问于2022-12-01
得票数 -1
1
回答
以HTML或其他方式保存交互式绘图
python
、
plotly
symbol, fig.show() 我不确定如何保存它,我使用了以下几行代码来保存它,但每行代码都抛出一个错误: fig.
write
_html(data_path+"/genre.html") import plotly.io as pio pio.
write
_html(fig, file=data_path+"/genre.html", auto_open
浏览 19
提问于2021-04-28
得票数 3
回答已采纳
9
回答
PythonPython语言:
在
TypeError
中
无法迭代“”
NoneType
“”
对象
python
、
nonetype
error TypeError: '
NoneType
' object is not iterable是什么意思?我在这段
Python
代码
中
得到了它: with open(filename
浏览 4
提问于2010-10-08
得票数 179
回答已采纳
3
回答
我正在尝试执行自定义yolov5
对象
检测模型。我正面临着以下错误
yolo
、
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",
浏览 7
提问于2022-04-06
得票数 1
13
回答
什么是“
NoneType
”
对象
?
python
、
null
、
nonetype
当我运行
python
脚本时,我会得到这个错误:我确信'str‘表示字符串,但我不知道'
NoneType
’
对象
是什么。我的脚本退出了第二行,我知道第一行可以工作,因为来自该行的命令
在
我的asa
中
,正如我所期望的那样。起初,我认为这可能是因为我
在
send_command中使用了变量和用户输入。“大
浏览 24
提问于2014-01-13
得票数 120
回答已采纳
1
回答
dataframe..
write
- AttributeError:“
NoneType
”
对象
没有
属性
“模式”
python
、
pyspark
、
apache-spark-sql
、
pyspark-dataframes
、
aws-glue-spark
parquet_file = s3://bucket-name/prefix/ 回溯(最近一次调用):文件“/tmp/ma-test-csv-to-parquet-胶水-作业-2”,第173行,
在
浏览 5
提问于2021-02-03
得票数 0
3
回答
如何在
python
中使用gTTS?
python
、
text-to-speech
、
attributeerror
、
google-text-to-speech
执行以下代码时 tts = gTTS('hello')我得到了"AttributeError:'
NoneType
‘
对象
没有
属性
'group'“。\
Python
36\lib\site-packages\gtts\tts.py", line 247, in save self.
write
_to_fp(
浏览 1
提问于2018-09-21
得票数 0
回答已采纳
1
回答
Python
对象
没有
属性
‘
NoneType
’
python
、
python-2.7
我正在使用mplayer_
python
构建一个UI。当我尝试获取元数据时,有时会发生以下错误-> AttributeError:“
NoneType
”
没有
属性
“get”提前感谢
浏览 2
提问于2014-11-05
得票数 0
回答已采纳
1
回答
什么允许裸类实例具有可分配的
属性
?
python
、
python-3.x
我试图填补我对
Python
对象
和类是如何工作的理解上的一个空白。裸object实例不以任何方式支持
属性
赋值:# or我假设这是因为一个普通的object实例不具有__dict__
属性
: > '__dict__' in dir(ob
浏览 9
提问于2021-12-17
得票数 10
回答已采纳
1
回答
获取错误"AttributeError:'
NoneType
‘
对象
没有
属性
'next'“
python-3.x
、
list
、
sorting
、
linked-list
我
在
尝试合并两个排序的链接列表。我做错了什么?head2) dummy.next=head2预期产出:def mergeTwoSortedLinkedLists(head1, head2): #
Write
浏览 7
提问于2022-06-06
得票数 0
2
回答
Python
:'
NoneType
‘
对象
没有
属性
python
、
google-app-engine
、
syntax-error
、
google-cloud-datastore
Documents\ud\contract\main.py", line 81, in getAttributeError: '
NoneType
' object has no attribute 'book_number'first_query = db.GqlQuery("SELECT/usr/bin/env
python
浏览 1
提问于2012-07-06
得票数 0
回答已采纳
1
回答
Python
'
NoneType
‘
对象
没有
属性
’.‘
python
、
python-2.7
我对
python
有个问题,我编写了这个类 def __init__(self, name): pset.add((self.name,)+p)
在
写函数之后{'name':'swing', 'children':[]}]}]} 我尝试执行一些操作,例如: tree.count()、tr
浏览 0
提问于2015-11-24
得票数 1
回答已采纳
1
回答
错误: AttributeError:'
NoneType
‘
对象
没有
属性
'
write
_audiofile’
python
、
moviepy
我正在尝试转换.mp4文件到.mp3使用moviepy(
Python
)这里是我正在运行的代码。import * audioclip=video.audioFile "D:/Email Automation/delete.py", line 22, in <module>
浏览 198
提问于2021-07-13
得票数 0
2
回答
在
python
中
的类之间传递变量(AttributeError:'
NoneType
‘
对象
没有
’
write
‘
属性
)
google-app-engine
、
python-2.7
(webapp2.RequestHandler): def setValue(self,que,title): self.response.
write
(que) AttributeError: '
NoneType
'
浏览 4
提问于2014-01-07
得票数 0
1
回答
“
NoneType
”
对象
在
python
中
没有
“append”
属性
python
我
在
python
中有以下函数: starting_points = find_starting_points(s,m) solution = build_solution(position, s, m, solution) pass 55 for i in range(0, len(st
浏览 0
提问于2012-12-23
得票数 0
回答已采纳
2
回答
AttributeError:'
NoneType
‘
对象
在
Python
中
没有
属性
*
python
、
beautifulsoup
、
element
、
web-component
、
attributeerror
链接在这里,temp = soup.find("tr", {"class': 'team-value"}).string 追溯(最近一次调用):文件"element.py",第23行,
在
temp= soup.find("tr",{"class':‘team“}).string AttributeError:'
NoneTy
浏览 4
提问于2017-09-20
得票数 0
1
回答
Python
-Mockito '
NoneType
‘
对象
没有
’
NoneType
‘
属性
python
、
unit-testing
、
mockito
在运行单元测试时,我被抛出了这个
属性
错误: score_data = json.loads(hdfs_client.read_txt_from_hdfs_with_pipe(score_path).strip()) AttributeError: '
NoneType
' object has no attribute 'strip'
浏览 20
提问于2021-03-22
得票数 0
3
回答
相当于
Python
2
中
心的
Python
3
python
下面的工作
在
Python
2
中
进行当我
在
Python
3
中
尝试相同的代码时,我会得到以下错误消息:
在
Python
3
中
如何做同样的事情呢?
浏览 5
提问于2016-03-23
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python获取对象属性的4中方法
一切皆对象——Python面向对象:属性访问的魔法(中)——property
Python 中的面向对象没有意义
类与对象在Python中的本质
【python进阶】-dict和object
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券