1.在python中,出现“Unexpected indent”原因可能之一
你的函数或哪一行的缩进出了问题
2.UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position...解决办法
编码需要转为utf-8
f = open("gp.txt",encoding='utf-8').read()

1.在python中,出现“Unexpected indent”原因可能之一
你的函数或哪一行的缩进出了问题
2.UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position...解决办法
编码需要转为utf-8
f = open("gp.txt",encoding='utf-8').read()