TypeError: expected a character buffer object

后端 未结 3 1485
伪装坚强ぢ
伪装坚强ぢ 2020-12-06 01:29

I am running into the following error while writing the value into a file. Can you please help me figure out what is the issue here and how to fix it?

row =         


        
3条回答
  •  执念已碎
    2020-12-06 01:52

    Assuming you just want to write the string '649' to the file, change row to '649' or issue f.write(str(row)).

提交回复
热议问题