TypeError: a bytes-like object is required, not 'str' when trying to write in csv file

后端 未结 0 1249
一整个雨季
一整个雨季 2020-12-08 20:05

I have to convert the followin code written in Python 2 to Python3:

with open(\'C:/path_to_csv_file/fold1_1.csv\', \'wb\') as csvfile:
    spamwriter = csv.wr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题