import urllib.parse if __name__ == '__main__': str_ = '%E6%99%BA%E6%85%A7' print(urllib.parse.unquote(str_))