You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

655 B

python

référence

https://github.com/gto76/python-cheatsheet/blob/master/README.md

Afficher les warning:python -Wd Mode développement :-X dev

`

Virtual env

  • create virtual env: python3 -m venv /path
  • enter in virtual env: source env/bin/activate
  • leave venv: deactivate
  • list all installed package in file: pip freeze > requirement.txt
  • install package list in file: pip install -r requirement.txt

tips

  • pprint permet d afficher vos structure de données
  • la fonction dir() permet de lister les attribut d un

unitest

lancer une suite de tests

python -m unittest tests.suite