Transform URL string into normal string in Python ( to space etc)

前端 未结 3 950
半阙折子戏
半阙折子戏 2020-12-14 15:07

Is there any way in Python to transform this %CE%B1%CE%BB%20 into this αλ which is its real representation?

3条回答
  •  离开以前
    2020-12-14 15:31

    python 3 answer

    import urllib 
    urllib.parse.unquote('/El%20Ni%C3%B1o/')
    
    '/El Niño/'
    

    source

提交回复
热议问题