#TypeError: 'str' object is not callable 的一种解决办法
#
#以下代码会出错
#
#这里把变量名str改为str1就行
#
i=6
c=str(i)
print (c)
for i in range(0,10):
str=str(i)
print (str)
#TypeError: 'str' object is not callable 的一种解决办法
#
#以下代码会出错
#
#这里把变量名str改为str1就行
#
i=6
c=str(i)
print (c)
for i in range(0,10):
str=str(i)
print (str)

被折叠的 条评论
为什么被折叠?