Python3 Error: TypeError: Can't convert 'bytes' object to str implicitly

前端 未结 3 1110
故里飘歌
故里飘歌 2020-12-02 17:09

I am working on exercise 41 in learnpythonthehardway and keep getting the error:

  Traceback (most recent call last):
  File \".\\url.py\", line 72, in <         


        
3条回答
  •  时光说笑
    2020-12-02 17:20

    Explicitly convert byte type 'word' into string

    result = result.replace("###", sre(word), 1)
    

    it should work

提交回复
热议问题