腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
AttributeError
:'
list
‘
对象
没有
'
loc
’
属性
python
当我尝试执行一些函数时,错误显示:
AttributeError
:'
list
‘
对象
没有
'
loc
’
属性
data = ['dataA','dataB','dataC','dataD'] for i in
浏览 321
提问于2021-01-29
得票数 0
回答已采纳
4
回答
AttributeError
:'str‘
对象
没有
属性
'
loc
’
python
、
pandas
尝试使用如下的for循环存储年龄值dataset.
loc
[(dataset['age'] > 15) & (dataset['age'] <= 25), 'age'] = 1dataset.
loc
浏览 0
提问于2018-06-07
得票数 0
回答已采纳
1
回答
AttributeError
:'
list
‘
对象
没有
'find’
属性
python-3.x
下面的代码导致了
AttributeError
:'
list
‘
对象
没有
'find’
属性
,我不知道如何修复它: import string for char in messages:
loc
= letters_
list
.find(char)
浏览 15
提问于2021-10-10
得票数 1
回答已采纳
1
回答
获取"
AttributeError
:'NoneType‘
对象
没有
属性
'
loc
'“
python-3.x
我正在使用
loc
计算列之和,但我得到了以下错误: top_C2_index = sum(sub_sector_df1.
loc
['C2']['Contribution%'].cumsum(axis=0) < 80)+1 任何帮助都将不胜感激!
浏览 0
提问于2019-04-26
得票数 1
1
回答
AttributeError
:
list
对象
没有
属性
python
/minimal.py", line 5, in __init__
AttributeError
: '
list
' object has no attribute 'c' self,b = b我试着在谷歌上搜索,但
没有
类似的问题
浏览 1
提问于2013-06-14
得票数 2
回答已采纳
1
回答
attributeError
:'
list
‘
对象
没有
属性
.....
python
、
list
、
attributeerror
我得到了
attributeError
,但我不明白.... self.first, 'can delete post']我不确定我在这里遗漏了什么,我使用for循环遍历列表并将其打印出来,但是我一直收到"'
list
浏览 2
提问于2018-11-30
得票数 0
2
回答
Python Pandas:
AttributeError
:'str‘
对象
没有
'
loc
’
属性
python
、
string
、
pandas
、
error-handling
13 35 4+df['Category'] = df['Count']我得到了这个错误:
AttributeError
: 'str' object has no attribute '
loc
'
浏览 0
提问于2017-09-21
得票数 3
回答已采纳
2
回答
AttributeError
:'
list
‘
对象
没有
属性
’TastyPie‘
list
python
、
django
、
rest
、
tastypie
srv/www/poka/app/env/main/lib/python2.7/site-packages/tastypie/resources.py", line 459, in dispatch_
list
return self.dispatch('
list
', request, **kwargs) File "/srv/www/poka/app/env/
浏览 4
提问于2014-04-02
得票数 0
1
回答
"
AttributeError
:'
list
‘
对象
没有
’ravel‘
属性
“
python
、
list
、
numpy
下面的代码抛出
AttributeError
: '
list
' object has no attribute 'ravel'。我遗漏了什么?
浏览 3
提问于2014-03-11
得票数 8
回答已采纳
1
回答
AttributeError
:'
list
‘
对象
没有
属性
'iloc’
python
、
pandas
、
dataframe
main.py", line 25, in <module>
AttributeError
: '
list
' object has no attribute 'iloc' ```
浏览 1
提问于2021-07-07
得票数 1
回答已采纳
1
回答
AttributeError
:“
list
”
对象
没有
属性
“”write“”
python-3.x
、
list
、
attributes
\Documents\ARTOFWAR\PITON\02-piton\copycontent.py", line 38, in modifytext2
AttributeError
: '
list
' object has no attribute 'write'
浏览 5
提问于2021-10-25
得票数 0
1
回答
AttributeError
:“”
list
“”
对象
没有
属性
“”reshape“”
python
、
arrays
、
list
、
numpy
、
reshape
我有以下Python脚本部分:我得到了这个错误:假设X是一个Numpy数组,我按如下方式获得: for img in range(len(names)):
浏览 0
提问于2017-12-26
得票数 0
1
回答
AttributeError
:“
list
”
对象
没有
属性
“”get“”
google-app-engine
、
django-forms
当我提交表单时,我得到了
AttributeError
: '
list
' object has no attribute 'get'的任何想法?k = I() k.put()
浏览 1
提问于2012-03-17
得票数 3
1
回答
"
AttributeError
:'
list
‘
对象
没有
’SMSMessage‘
属性
“
python
、
class
、
object
if userChoice == "read":get_message - returns the text of a message in the
list<
浏览 3
提问于2017-02-21
得票数 0
2
回答
AttributeError
:“
list
”
对象
没有
属性
“T”
python
、
machine-learning
、
neural-network
in backward
AttributeError
: '
list
' object has no attribute 'T'
浏览 1
提问于2018-07-06
得票数 0
1
回答
AttributeError
:'
list
‘
对象
没有
属性
'size’
python
、
pytorch
、
tensor
、
pytorch-dataloader
dataset = TensorDataset(tensor_input_specs,tensor_target_specs)然而,我得到了以下错误:
AttributeError
: '
list
' object has no attribute 'size',我想这是因为我在列表中附加了光谱图,但我不知道如何实现这一点。编辑:
AttributeError
Traceback (most rec
浏览 9
提问于2022-08-01
得票数 0
回答已采纳
1
回答
AttributeError
:'
list
‘
对象
没有
属性
'lstrip’
python
、
django
、
email
、
smtp
如果有unicode被传递等,我会对代码进行双重检查,以避免将获取的数据转换为str,但
没有
用。如果我独立运行脚本,它会执行并发送带有附件的电子邮件,
没有
问题,但是在Django中,它会产生一个错误。
浏览 1
提问于2019-08-23
得票数 0
回答已采纳
1
回答
AttributeError
:
list
对象
没有
属性
analyze
python
、
scikit-learn
、
tf-idf
feature_extraction/text.py", line 341,term_count_current = Counter(self.analyzer.analyze(doc))我使用的是scikit版本0.14.1。
浏览 1
提问于2014-03-29
得票数 0
2
回答
"
AttributeError
:'
list
‘
对象
没有
属性
'get’“
python
、
python-3.x
当我运行代码时 from datetime import dateimport
浏览 0
提问于2018-03-29
得票数 1
1
回答
AttributeError
:“”
list
“”
对象
没有
“”startswith“”
属性
“”
python-3.x
、
jupyter-notebook
打印(城市) 在() 4中打印回溯(最近一次调用)5 city_m in cities:->6 if cities.startswith("M"):7
AttributeError
(“cities thatstart with M:",cities) 8其他:
AttributeError
:“”
list
“”
对象
没有
“”startswith“”
属性
“” 我正在尝试列出以"m“开头的城市,但我在标题中遇到错误
浏览 49
提问于2020-05-03
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
新手常见的python报错及解决方案
必背Python单词:常用报错提示单词20个
10 行代码,9 行报错,8 个警告…一个都逃不掉!
Ui功能自动化测试:重新封装 Webdriver Api
Python对象属性的那些事
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券