Skip to content

Commit ba2ef79

Browse files
committed
UrlLib
1 parent 3c23ae2 commit ba2ef79

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,15 +1169,22 @@ wf.close()
11691169
```
11701170

11711171

1172-
UrlLib
1173-
------
1174-
### Translate special characters
1172+
Url
1173+
---
11751174
```python
11761175
>>> from urllib.parse import quote, quote_plus, unquote, unquote_plus
1176+
```
1177+
1178+
### Encode
1179+
```python
11771180
>>> quote("Can't be in URL!")
11781181
'Can%27t%20be%20in%20URL%21'
11791182
>>> quote_plus("Can't be in URL!")
11801183
'Can%27t+be+in+URL%21
1184+
```
1185+
1186+
### Decode
1187+
```python
11811188
>>> unquote('Can%27t+be+in+URL%21')
11821189
"Can't+be+in+URL!"'
11831190
>>> unquote_plus('Can%27t+be+in+URL%21')

0 commit comments

Comments
 (0)