Python
Jump to navigation
Jump to search
Elsewhere:
Packages
pip
Update pip (ref):
- [Mac]
pip install -U pip
- [Windows]
python -m pip install -U pip
Update package: pip install [package_name] --upgrade
File input/output
with open('workfile') as f: for line in f: print(line, end='')
Formatting
- PEP-498: Literal String Interpolation
- Formatted string literals
Classes
https://docs.python.org/3/tutorial/classes.html
__repr__