python ascii编码重新编码为unicode

                    if chardet.detect(str(l))['encoding'] == 'ascii':
                    l = l.decode("ascii").encode("unicode_escape")

  

posted @ 2021-01-07 10:06  垄上行  阅读(183)  评论(0编辑  收藏  举报