The problem is str function must have been overloaded.
Input:
X=5
print("X value is:"+str(X))
Output:
X value is:5
Input:
X=5
str = "98897"
print("X value is:"+str(X))
Output:
TypeError Traceback (most recent call last)
in ()
----> 1 print("X value is:"+str(X))
TypeError: 'str' object is not callable
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…