腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(3561)
视频
沙龙
2
回答
获取
此
错误
:
TypeError
:只
能将
list
(
非
"
int
")连
接到
list
python
、
list
、
typeerror
我正在尝试编写这个程序来计算2d列表的周长(基本上就像一个矩形一样),但我总是得到这个
错误
。我还需要一些帮助来弄清楚如何在不添加两次角的情况下对“矩形”的列进行求和。
浏览 6
提问于2020-10-20
得票数 0
2
回答
TypeError
:只
能将
list
(
非
"
int
")连
接到
list
python
在下面的代码中,我试图用
list
中的一些itens做一些有用的事情: command"/usr/lib/python2.4/subprocess.py", line 891, in _execute_child
Typ
浏览 0
提问于2011-03-18
得票数 1
回答已采纳
1
回答
"
TypeError
:只
能将
list
(
非
"
int
")连
接到
list
“如何处理
此
问题
python
、
list
、
for-loop
、
pycharm
我是python的新手,我正在尝试显示BMI,但是我收到了一个
错误
,声明
TypeError
: can only concatenate
list
(not "
int
") to
list
: 我不确定如何显示此列表
浏览 7
提问于2020-10-21
得票数 0
回答已采纳
4
回答
TypeError
:只
能将
list
(
非
"
int
")连
接到
python中的
list
python
我试图运行这段代码,但它显示了一个
错误
: s[0]=0 num=len(aliens)(1000)] for i in xrange(0,j): print shoot(line) File "module1.py"
浏览 5
提问于2013-07-20
得票数 11
1
回答
Python
错误
:
TypeError
:只
能将
list
(
非
"str")连
接到
list
python-2.7
我目前正在开发一个备份程序,在尝试为给定的目标生成一个唯一的文件名时遇到了
错误
。我在代码中这样调用这个函数: getFileUnique(f,pathtofile(backup+"/"+"..+j[-1]Traceback (most recent call last):
TypeError
: can only concatenate
l
浏览 0
提问于2013-06-18
得票数 0
2
回答
将列表转换为
int
Python
python
、
list
、
integer
我有这样的代码:x=
list
(np.arange(1,9,0.5))print(d)can only concatenate
list
not "
int
" to
list
int
(
list
(x)) 但它又犯了一个
错误
。
浏览 19
提问于2022-03-14
得票数 -2
1
回答
在元组中添加一个数字
for-loop
、
tuples
我试图在元组中添加一个数字,但我得到了以下
错误
:这是我的密码:打印(V) 这个
错误
意味着什么?
浏览 1
提问于2021-06-22
得票数 0
1
回答
"
TypeError
:只
能将
str (不是"
list
")连
接到
str“为什么要向我显示
此
错误
?”
python
、
string
、
datetime
、
utc
、
python-re
print(r" enter the time zone that you want to watch ") e=
list
(o) uy=
list
in use:
浏览 2
提问于2021-03-16
得票数 0
回答已采纳
1
回答
升x-作为自由变量-列表元素的幂
python
、
list
假设我有以下列表:我想让x作为my_
list
中每个元素的幂的变量,这样输出将如下所示:我的做法如下:但这会抛出以下
错误
:
TypeError
: unsupported operand type(s) for ** orpow(): 'tuple' and '
浏览 18
提问于2019-07-12
得票数 0
1
回答
具有列表和元组的Python +=
python
因此,我们可以在python解释器中尝试以下代码行:s=s+(1,-1) 这将导致
错误
"
TypeError
:只
能将
list
(
非
"tuple")连
接到
list
“。
浏览 1
提问于2015-06-15
得票数 2
1
回答
列表字符串python上的嵌套循环,
python
、
string
我的
错误
是 b =
list
(s.split
浏览 4
提问于2022-01-10
得票数 -1
2
回答
如何在Python中组合列表和字典?
python
、
json
、
arraylist
、
type-conversion
1)如何组合dict和
list
,并以JSON的形式返回结果?我已经尝试组合
list
_1(字典)和
list
_2(列表),但得到
错误
。
list
_1 = [{'title': 'NEWBOOK', 'downloads': '4', 'views': '88'}]
list
_2 = {'title': 'MASTERMIND',
浏览 0
提问于2018-05-12
得票数 2
4
回答
如何检查Python列表是否包含作为元素的字符串
python
、
string
、
list
、
any
因此,我正在处理一个Python函数,它接收一个数字列表作为参数并处理它,就像下面的例子: return "Empty
list
can not be accepted as argument" return "Success,
list
contains only numeric
浏览 4
提问于2021-03-06
得票数 0
回答已采纳
2
回答
查找展平列表或元组的最大值
python
、
list
、
max
N的元素可以是
int
、tuple或
list
。任务是将其展平并返回最大值。我设法展平N并且我能够返回一个整数列表,但是当我应用max()时,我得到一个
错误
:
TypeError
:只
能将
list
(而不是"
int
")连
接到
list
...即使我试图将结果转换为列表,我也不确定我在哪里弄错了,为什么会弄错: mode = (
list
,tuple) result
浏览 10
提问于2020-02-11
得票数 0
回答已采纳
1
回答
非
静态成员C++98的无效使用
c++
、
class
、
pointers
、
c++98
在编写程序并试图编译之后,我得到了以下
错误
:这让我感到很困惑,因为我使用cpk); //----argument not neededfor constructor because a
list
is
浏览 2
提问于2014-04-06
得票数 0
回答已采纳
1
回答
TypeError
:不
能将
序列乘以
非
整数类型的“浮点”。Python 3
python
、
list
、
python-3.x
first =
int
(
list
1[0] +
list
1[1]) c = con.execute("SELECT Centroid FROM我现在的问题是我犯了一个
错误
:
TypeError
:不
能将</e
浏览 5
提问于2015-02-05
得票数 0
回答已采纳
2
回答
for循环-为什么在这种情况下,range(len())会导致
TypeError
:
int
不可订阅?
python
、
loops
我正在遍历JSON响应,并试图找出原因,在下面的例子中,我得到了一个
TypeError
: '
int
' not subscriptable。
list
= []
list
.append(i['FastestLap']['Time&
浏览 20
提问于2021-07-22
得票数 0
回答已采纳
2
回答
抖动JSON关联数组到对象
flutter
、
dart
我有这个型号 String src; double minprice; double avgprice;
int
popularity; {required this.src, late
List
<SkinModel> skinListModel = [
浏览 3
提问于2022-11-04
得票数 0
回答已采纳
2
回答
当试图对整数数组执行乘法时,
TypeError
python
digit = input("input a 5 digit number:") digit =
list
(digit) print(
int
(digit[4])) print("error")new_digit2 =
int</
浏览 4
提问于2016-02-24
得票数 0
2
回答
在Python中使用sum函数时
获取
TypeError
python
、
function
、
sum
使用Python中的sum函数
获取
此
错误
,我做错了什么:a=sum(student_heights)用户输入:12 13 14 15Traceback (most recent call last)
TypeErr
浏览 3
提问于2022-04-23
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python代码常见错误小结
Python 进阶:自定义对象实现切片功能
MyBatis动态SQL
新手常见的python报错及解决方案
PHP8还有半年就要来了,来看看有哪些新特性
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券