rowTemp1 += 1
255行: print("为什么啊 "+str(rowTemp1)+" 奇怪")
if (rowTemp1 % 10000 == 0):
在if语句上增加这个print,报错:
Traceback (most recent call last):
File "D:/myProgram/pythonProgram/JetbrainsCrack/excelToMssql/mssqlToExcelBom/delBomCreateBom.py", line 302, in <module>
readAndYanSe(sExcelFile,totalRow,bomName)
File "D:/myProgram/pythonProgram/JetbrainsCrack/excelToMssql/mssqlToExcelBom/delBomCreateBom.py", line 255, in readAndYanSe
print("为什么啊 "+str(rowTemp1)+" 奇怪")
TypeError: 'str' object is not callable
————注意,这里的报错是 'str' object,不是 'float' object.这到底是怎么回事啊?难道是因为我用的破解版pycharm??大佬,求指教
【 在 feng321 的大作中提到: 】
: if (rowTemp % 10000 == 0):
: print(rowTemp)
: print(type(rowTemp))
: ...................
--
FROM 120.242.253.*