The first case is that the encode() method is used in the crawler file parse function for transcoding. (PS: The transcoding operation should be done in the pipeline file)
In the second case, the second parameter of open() is set to "w", which should be "wb+"