腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Python
:
TypeError
:
无法
连接
'
str
‘
和
'
int
’
对象
python
、
recursion
我可以编写一个迭代模块来实现这一点,但是我尝试使用递归(在本课中我使用的是处理递归
和
迭代的教程,因此我认为我应该同时尝试这两种方法)并遇到一些麻烦。Traceback (most recent call last):position = substringmatchrecursive(target[position+1: ], key) 我假设find()会输出
浏览 0
提问于2013-12-16
得票数 1
回答已采纳
7
回答
Python
:
TypeError
:
无法
连接
'
str
‘
和
'
int
’
对象
python
、
string
、
printing
、
integer
我有一个
python
程序,它可以将字符串添加到整数中:b = raw_input("Enter b: ")a =
int
(a)c = a + bprint "a + b as integers: " + c
Python
:
TypeEr
浏览 193
提问于2012-08-07
得票数 153
回答已采纳
2
回答
TypeError
:
无法
连接
'
str
‘
和
'
int
’
对象
python
、
string
、
integer
、
concatenation
、
typeerror
我现在正在学习
Python
,耶!不管怎样,我有个小问题。我看不出有什么问题:y = 7但是
Python
的想法不同--
TypeError
: cannot concatenate '
str
' and '
int
' objects。 为什么会这样呢?
浏览 4
提问于2011-08-10
得票数 4
回答已采纳
2
回答
TypeError
:
无法
连接
“
str
”
和
“
int
”
对象
1
python
、
while-loop
、
typeerror
假设s是小写字符的字符串。编写一个打印字符串' bob‘出现在s中的次数的程序。例如,如果s= 'azcbobobegghakl',那么程序应该打印出现bob的次数是:2s = 'azcbobobegghakl'if(s.find("b")): while p+2 <= len(s):
浏览 0
提问于2018-03-10
得票数 0
回答已采纳
8
回答
为什么
Python
在拼接字符串时不进行类型转换?
python
、
string
、
type-conversion
在
Python
中,以下代码会产生一个错误:b = 1(错误是"
TypeError
:
无法
连接
'
str
‘
和
'
int
’
对象
“)。为什么
Python
解释器在遇到这些类型的串联时不自动尝试使用
str
()函数?
浏览 2
提问于2011-06-17
得票数 27
回答已采纳
4
回答
I += 1
TypeError
:
无法
连接
“
str
”
和
“
int
”
对象
python
、
increment
、
typeerror
cs_id.append('CS_' + id_generator()) print ', '.join(cs_id)i += 1我在网上发现了一些关于整数增量的信息,但我不明白这里有什么问题。
浏览 8
提问于2016-04-12
得票数 1
2
回答
Python
:
TypeError
:不能
连接
'
str
‘
和
'
int
’
python-3.x
在我想要它打印的最后,bash告诉我它不能
连接
'
str
‘
和
'
int
’
对象
。我试着遵循下面的帖子,,但我没有得到我想要的结果。 我只想让它说:"Ganon现在有x个生命点了。“有什么想法吗?
浏览 31
提问于2017-06-27
得票数 0
回答已采纳
1
回答
Python
TypeError
:
无法
连接
'
str
‘
和
'long’
对象
python
、
mysql
userid + "', '" + password + "', '" + fname + "', '" + lname + "', '" + email + "')"
TypeError
: cannot concatenate '
str
' and 'long' objects 我尝试过这样做
浏览 1
提问于2013-09-20
得票数 1
回答已采纳
1
回答
Python
TypeError
:
无法
连接
“
str
”
和
“list”
对象
python
、
file-io
f = open("open","rw") c = "" for line in f: splitted = line.split() w.write("'"+splitted[4:]+"
浏览 0
提问于2015-03-18
得票数 0
回答已采纳
4
回答
TypeError
:
无法
连接
'
str
‘
和
'
int
’
对象
(Inraster.Append)
python
可以说,在
python
世界里,我被扔进了狼群;新的工作给了我脚本,并希望我对它们进行调整,以适应各种数据集。Inraster = [] for month in range (01, 13): date =
str
"NONE")我知道我的错误在line 21: date = <e
浏览 5
提问于2014-04-04
得票数 0
回答已采纳
3
回答
Python
:
无法
连接
“
str
”
和
“
int
”
对象
错误
python
、
syntax-error
当我运行它时,它会显示以下错误: File "
python
", line 30, in <module>
TypeError
: cannot concatenate '
str
' and '
int
' objects 有人能解释一下发生了什么吗?
浏览 9
提问于2017-10-22
得票数 2
2
回答
当我试图在
Python
中执行循环字符串时,会收到一个错误。
python
、
string
、
loops
目前正在学习
Python
。我写的代码是: for x in "Helper": print(x)有人能解释我做错了什么吗?
浏览 6
提问于2022-01-28
得票数 0
回答已采纳
1
回答
在
Python
扩展中引发类型错误时获得PyObjectType的字符串表示形式
python
、
python-2.7
、
python-c-api
、
python-c-extension
PyObject_TypeCheck(key, &PyBaseString_Type) { PyObject *bad_type_string = PyObject_
Str
key->ob_type); char *bad_type_char = Py
浏览 6
提问于2017-02-12
得票数 0
4
回答
无法
连接
“
str
”
和
“
int
”
对象
python
、
python-2.7
"Type Year = "+type(Year)我犯了这个错误当我打印年份时,我得到了2014,似乎Month没有**New异常***** exceptions.
TypeError<
浏览 0
提问于2014-01-15
得票数 0
回答已采纳
4
回答
TypeError
:
无法
连接
'
str
‘
和
'instance’
对象
(
python
urllib)
python
、
urllib
编写一个
python
程序时,我在使用urllib.urlopen函数时遇到了这个错误。GetAllChurchPages()CPs = CPs + urllib.urlopen(url) url = 'http://we
浏览 0
提问于2009-11-02
得票数 2
回答已采纳
1
回答
TypeError
:
无法
连接
'
str
‘
和
'function’
对象
python
文件
python
我的
python
代码应该下载rmtp视频,但我得到了以下错误: if match: print
浏览 2
提问于2015-01-22
得票数 2
回答已采纳
2
回答
TypeError
:
无法
连接
'
str
‘
和
'
int
’
对象
python
、
variables
、
typeerror
我一直收到
TypeError
消息,但不知道为什么。任何建议都将不胜感激。to be rounded: ") right = number[decimallocation:] lesser =
int
(number+right) print (greater) print (lesser
浏览 0
提问于2012-12-04
得票数 0
1
回答
Python
类型提示语法是如何/为什么工作的?
python
、
python-3.x
、
type-hinting
、
python-typing
我刚刚在中看到了以下示例 return 'Hello ' + name printin <module> File "test.py", line 2, in greeting
TypeError
: Can'
浏览 51
提问于2015-04-21
得票数 19
回答已采纳
1
回答
Python
GAE Cloud Platform bucket
TypeError
:
无法
连接
'
str
‘
和
’
str
‘
对象
python-2.7
、
google-app-engine
、
webapp2
当我尝试它的时候,我得到了这个错误: File "/base/data/home/runtimes/
python
27/
python
27_lib/versions/third_party(request, response) File "/base/data/home/runtimes/
python
27/
python
27_lib
浏览 0
提问于2016-03-29
得票数 0
2
回答
TypeError
:
无法
连接
“
str
”
和
“list”
对象
python
conf//DMS.properties\n') p.stdout.close() ...I总是得到
TypeError
:不能
连接
'
str
‘
和
'list’
对象
。
浏览 2
提问于2011-11-01
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
云点播
活动推荐
运营活动
广告
关闭
领券