Skip to content

Commit 3c23ae2

Browse files
committed
UrlLib
1 parent cd14b5f commit 3c23ae2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,8 +1173,15 @@ UrlLib
11731173
------
11741174
### Translate special characters
11751175
```python
1176-
from urllib.parse import quote_plus
1177-
<str> = quote_plus(<str>)
1176+
>>> from urllib.parse import quote, quote_plus, unquote, unquote_plus
1177+
>>> quote("Can't be in URL!")
1178+
'Can%27t%20be%20in%20URL%21'
1179+
>>> quote_plus("Can't be in URL!")
1180+
'Can%27t+be+in+URL%21
1181+
>>> unquote('Can%27t+be+in+URL%21')
1182+
"Can't+be+in+URL!"'
1183+
>>> unquote_plus('Can%27t+be+in+URL%21')
1184+
"Can't be in URL!"
11781185
```
11791186

11801187

0 commit comments

Comments
 (0)