This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatique:python [2024/12/13 21:11] – yahiko | informatique:python [2026/04/22 14:24] (current) – [Le dernier caractère d'une chaîne] yahiko | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| python -m venv undossier | python -m venv undossier | ||
| .\undossier\Scripts\activate | .\undossier\Scripts\activate | ||
| + | </ | ||
| + | |||
| + | ===== pip ===== | ||
| + | |||
| + | ==== Générer requirements.txt ==== | ||
| + | |||
| + | <code bash> | ||
| + | pip freeze > requierements.txt | ||
| + | </ | ||
| + | |||
| + | ==== Installer depuis requierements.txt ==== | ||
| + | |||
| + | <code bash> | ||
| + | pip install -r requierements.txt | ||
| </ | </ | ||
| Line 92: | Line 106: | ||
| ===== Le dernier caractère d'une chaîne ===== | ===== Le dernier caractère d'une chaîne ===== | ||
| <code python> | <code python> | ||
| - | print(" | + | print(" |
| </ | </ | ||
| Va retourner '' | Va retourner '' | ||