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)

 

你可能感兴趣的:(每日问题,python)