|
|
|
@ -2,6 +2,13 @@ |
|
|
|
|
## référence |
|
|
|
|
https://github.com/gto76/python-cheatsheet/blob/master/README.md |
|
|
|
|
|
|
|
|
|
Afficher les warning:```python -Wd``` |
|
|
|
|
Mode développement :`-X dev` |
|
|
|
|
|
|
|
|
|
</details> |
|
|
|
|
|
|
|
|
|
</details>` |
|
|
|
|
|
|
|
|
|
## Virtual env |
|
|
|
|
- create virtual env: `python3 -m venv /path` |
|
|
|
|
- enter in virtual env: `source env/bin/activate` |
|
|
|
@ -14,4 +21,4 @@ https://github.com/gto76/python-cheatsheet/blob/master/README.md |
|
|
|
|
- la fonction dir() permet de lister les attribut d un |
|
|
|
|
## unitest |
|
|
|
|
### lancer une suite de tests |
|
|
|
|
```python -m unittest tests.suite``` |
|
|
|
|
```python -m unittest tests.suite``` |
|
|
|
|