Browse Source

Print

pull/10/head
Jure Šorn 5 years ago
parent
commit
b0121514a0
1 changed files with 15 additions and 17 deletions
  1. 32
      README.md

32
README.md

@ -295,23 +295,6 @@ import re
```
Print
-----
**Use `'file=sys.stderr'` for errors.**
```python
print(<el_1> [, <el_2>, end='', sep='', file=<file>])
```
```python
>>> from pprint import pprint
>>> pprint(locals())
{'__doc__': None,
'__name__': '__main__',
'__package__': None, ...}
```
Format
------
```python
@ -824,6 +807,21 @@ script_name = sys.argv[0]
arguments = sys.argv[1:]
```
### Print
**Use `'file=sys.stderr'` for errors.**
```python
print(<el_1> [, <el_2>, end='', sep='', file=<file>])
```
```python
>>> from pprint import pprint
>>> pprint(locals())
{'__doc__': None,
'__name__': '__main__',
'__package__': None, ...}
```
### Input Function
* **Reads a line from user input or pipe if present.**
* **The trailing newline gets stripped.**

Loading…
Cancel
Save