python3怎么把\u002F这种类型的字符进行对应的替换

slashUStr = "https:\u002F\u002Fm.dhgate.com\u002Fproduct\u002Fsnoop-dogg-doggystyle-album-logo-black-white\u002F427954156.html"
decodedUniChars = slashUStr.encode('utf-8').decode("unicode_escape")
print("decodedUniChars=", decodedUniChars)

 

posted @ 2020-09-01 11:37  柚子味儿的西瓜  阅读(99)  评论(0)    收藏  举报