UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xbf in position 0: incomplete multibyte sequencef

file = open('param.txt', 'r', encoding='utf-8')

Change from GBK to utf-8

Guess you like

Origin blog.csdn.net/xiaoxiamimm/article/details/114902539