報錯:_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)

import csv with open (r’C:\Users\jacky\Desktop\test\test.csv’,‘rb’) as myfile: lines =csv.reader(myfile) for line in lines: print(line) 出現報錯: Traceback (most recent call last): File 「c:/Users/jacky/De
相關文章
相關標籤/搜索