python程序报TypeError: can only con
2020-03-31 本文已影响0人
丙吉
在上个服务器上运行 print('write id = ', id )是可以的,但换了台服务器就出现了
TypeError: can only concatenate str (not "int") to str 这个错误。
改为
print('write id = %s'%id)
即可。
在上个服务器上运行 print('write id = ', id )是可以的,但换了台服务器就出现了
TypeError: can only concatenate str (not "int") to str 这个错误。
改为
print('write id = %s'%id)
即可。