So, per the docs, the write calls must become f.write(data.replace(b'\r\r\n', b'\r\n')). those b prefixes tell Python we're dealing with bytes , not str ...
確定! 回上一頁