Browse Source

Url

pull/10/head
Jure Šorn 6 years ago
parent
commit
a51bf3cd0e
1 changed files with 3 additions and 3 deletions
  1. 6
      README.md

6
README.md

@ -742,7 +742,7 @@ b'.\n..\nfile1.txt\nfile2.txt\n'
```
### Input
#### Reads a line from user input or pipe if present. The trailing newline gets stripped:
**Reads a line from user input or pipe if present. The trailing newline gets stripped.**
```python
filename = input('Enter a file name: ')
@ -1393,7 +1393,7 @@ from urllib.parse import quote, quote_plus, unquote, unquote_plus
```
### Encode
```python
```
>>> quote("Can't be in URL!")
'Can%27t%20be%20in%20URL%21'
>>> quote_plus("Can't be in URL!")
@ -1401,7 +1401,7 @@ from urllib.parse import quote, quote_plus, unquote, unquote_plus
```
### Decode
```python
```
>>> unquote('Can%27t+be+in+URL%21')
"Can't+be+in+URL!"'
>>> unquote_plus('Can%27t+be+in+URL%21')

Loading…
Cancel
Save