Home > other >  Help bosses: python is always an error when reading files UnicodeDecodeError: 'GBK' codec
Help bosses: python is always an error when reading files UnicodeDecodeError: 'GBK' codec

Time:09-22

Younger brother has been tortured for two days, has been changed to English all of the file name and directory, but is always an error reading file, the file directory entered into the editor is submitted to the same fault,
O great god teach

CodePudding user response:

Program first line add

# encoding: utf-8
  • Related