将f = open(filename, 'rb')改为f = open(filename, 'r')
iterator should return strings, not bytes (did you open the file in text mode?)
最新推荐文章于 2022-12-06 09:21:58 发布
将f = open(filename, 'rb')改为f = open(filename, 'r')