Ci-dessous, les différences entre deux révisions de la page.
|
python:generic_features [2016/09/05 22:13] Francesco Beretta créée |
python:generic_features [2016/10/09 23:10] (Version actuelle) Francesco Beretta |
||
|---|---|---|---|
| Ligne 13: | Ligne 13: | ||
| >> help('modules') | >> help('modules') | ||
| </code> | </code> | ||
| + | |||
| + | |||
| + | ===== Current working directory ===== | ||
| + | |||
| + | ==== Get the current working directory address ==== | ||
| + | |||
| + | <code python> | ||
| + | import os | ||
| + | cwd = os.getcwd() | ||
| + | print cwd | ||
| + | </code> | ||
| + | |||