Yield
- https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do
- https://jeffknupp.com/blog/2013/04/07/improve-your-python-yield-and-generators-explained/
Diff between iter and list
| import re | |
| import argparse | |
| import urllib.parse | |
| import urllib.request | |
| htmlRegex = '<[^\!][^>]*>' | |
| voidElementsRegex = '</?(?!area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta)' | |
| openingTagRegex = '<[^/]' | |
| closingTagRegex = '</' |
| Build image from Dockerfile | |
| docker build --pull --no-cache -t <IMAGE_NAME> . | |
| Run image | |
| docker run <IMAGE_NAME> | |
| Stop container | |
| docker stop <CONTAINER_ID> | |
| List all container |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Python: Django", | |
| "type": "python", |