TypeError: cannot use a string pattern on a bytes-like object

    xiaoxiao2022-07-07  151

    TypeError: cannot use a string pattern on a bytes-like object

    TypeError: can’t use a string pattern on a bytes-like object. html用decode(‘utf-8’)进行解码,由bytes变成string。 py3的urlopen返回的不是string是bytes。

    结果

    最新回复(0)