Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3890 connectés 

  FORUM HardWare.fr
  Programmation
  Python

  Affectation en python, !

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Affectation en python, !

n°1574924
moon93
Posté le 14-06-2007 à 14:55:47  profilanswer
 

bonjour,  
j'ai du mal a comprendre pourquoi on fait ce-ci:

Code :
  1. self.controllerClass    = controllerClass
  2.         self.frameClass         = frameClass
  3.         self.datastructureClass = datastructureClass
  4.         self.connectionsClass   = connectionsClass

mood
Publicité
Posté le 14-06-2007 à 14:55:47  profilanswer
 

n°1574932
masklinn
í dag viðrar vel til loftárása
Posté le 14-06-2007 à 15:03:01  profilanswer
 

[:petrus75]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1574937
Chaos Inte​stinal
Posté le 14-06-2007 à 15:06:49  profilanswer
 

self.controllerClass : attribut
controllerClass : variable locale
 
Si ces deux notions te sont étrangères, apprends d'abord le Python puis code ensuite en Python.

n°1574954
masklinn
í dag viðrar vel til loftárása
Posté le 14-06-2007 à 15:21:56  profilanswer
 

Chaos Intestinal a écrit :

self.controllerClass : attribut


variable membre plutôt, c'est probablement un constructeur :o


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1574960
Chaos Inte​stinal
Posté le 14-06-2007 à 15:26:57  profilanswer
 

masklinn a écrit :

variable membre plutôt, c'est probablement un constructeur :o


 
Je pensais naïvement que les deux étaient synonymes.
J'avais bien vu que ça sentait le constructeur ceci dit :o


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Python

  Affectation en python, !

 

Sujets relatifs
[Débutant] Delphi ou PythonPython + jabber
Python Win 2.5 ne démarre pas !Listes en python : IndexError: list index out of range Hmmm
Python vs VB.netAffectation de structures
[Python] API Reseau et manipulation des paquetsCréation d'une variable avec echo et affectation d'une valeur
Installer python sur son siteAppeler une fonction python dans un contexte java
Plus de sujets relatifs à : Affectation en python, !


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)