Outils pour utilisateurs

Outils du site


tech:python_cours_formation

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:python_cours_formation [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:python_cours_formation [2025/09/05 14:59] (Version actuelle) Jean-Baptiste
Ligne 47: Ligne 47:
  
 Bases : Bases :
 +  * https://scouv.lisn.upsaclay.fr/python-memento/index.fr.html
   * [[http://www.xavierdupre.fr/app/teachpyx/helpsphinx/c_lang/types.html|Types et variables du langage python]]   * [[http://www.xavierdupre.fr/app/teachpyx/helpsphinx/c_lang/types.html|Types et variables du langage python]]
   * Listes / tuples : https://www.askpython.com/python/list/python-list-of-tuples https://www.tutorialspoint.com/convert-a-list-into-a-tuple-in-python http://olivierschmitt.fr/python-les-listes-et-tuples/   * Listes / tuples : https://www.askpython.com/python/list/python-list-of-tuples https://www.tutorialspoint.com/convert-a-list-into-a-tuple-in-python http://olivierschmitt.fr/python-les-listes-et-tuples/
Ligne 74: Ligne 75:
   * Programmation par contract avec PyContracts   * Programmation par contract avec PyContracts
  
-Linter:+Linter / Formater : 
 +* Voir : 
 +  * https://linuxfr.org/news/python-partie-9-formateur-de-code-analyse-statique
 * black (The uncompromising code formatter) * black (The uncompromising code formatter)
 * pydocstyle (checking compliance with Python docstring conventions) * pydocstyle (checking compliance with Python docstring conventions)
Ligne 189: Ligne 192:
 solution[B] solution[B]
 </code> </code>
 +
 +
 +
 +== Mutable / immutable
 +
 +Voir aussi : deepcopy
 +
 +<code python>
 +lst=[1,2,3];
 +print(list(map(lambda x: [x],lst)));
 +</code>
 +
  
 == Autres == Autres
Ligne 210: Ligne 225:
  
 Pour ignorer l'erreur Pour ignorer l'erreur
-<code ini tox.ini>+ 
 +''tox.ini'' 
 +<code ini>
 [flake8] [flake8]
 extend-ignore = E501 extend-ignore = E501
Ligne 217: Ligne 234:
  
  
 +== Autres
 +
 +<code bash>
 +$ ansible-test sanity --list-tests
 +action-plugin-docs
 +ansible-doc
 +changelog
 +compile
 +empty-init
 +ignores
 +import
 +line-endings
 +no-assert
 +no-get-exception
 +no-illegal-filenames
 +no-smart-quotes
 +pep8
 +pslint
 +pylint
 +replace-urlopen
 +runtime-metadata
 +shebang
 +shellcheck
 +symlinks
 +use-argspec-type-path
 +use-compat-six
 +validate-modules
 +yamllint
 +</code>
  
tech/python_cours_formation.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki