Python avancé: Gagner du temps en retirant du 'trivia'.
This commit is contained in:
parent
1d2e5192d5
commit
c2d062d445
|
@ -82,25 +82,6 @@ Bien préciser qu'on ne peut pas « délier » un nom pour le faire
|
|||
pointer sur rien (en ce cas on le fait pointer sur `None`).
|
||||
|
||||
|
||||
## Pendant qu'on parle des noms
|
||||
|
||||
Leur portée dans une fonction ?
|
||||
|
||||
Notes:
|
||||
|
||||
In Python, variables that are only referenced inside a function are
|
||||
implicitly global. If a variable is assigned a value anywhere within
|
||||
the function’s body, it’s assumed to be a local unless explicitly
|
||||
declared as global.
|
||||
|
||||
|
||||
## UnboundLocalError
|
||||
|
||||
Notes:
|
||||
|
||||
Faire un exemple dans un fichier.
|
||||
|
||||
|
||||
# J'ai 5mn pour vous parler de `for`
|
||||
|
||||
Notes:
|
||||
|
|
Loading…
Reference in New Issue