Difference between revisions of "User:Bussiere"

From Electrolab
Jump to: navigation, search
Line 6: Line 6:
 
Mon code source :
 
Mon code source :
  
<math>
+
<source lang="python">
 
class Bussiere_1_01(object):
 
class Bussiere_1_01(object):
 
       def __init__(self):
 
       def __init__(self):
Line 35: Line 35:
 
letter = zlib.compress(letter)
 
letter = zlib.compress(letter)
  
 
+
</source>
</math>
+
  
  
 
et le code qui va avec :
 
et le code qui va avec :
 
[[File:http://img828.imageshack.us/img828/8034/codesource.jpg]]
 
[[File:http://img828.imageshack.us/img828/8034/codesource.jpg]]

Revision as of 15:04, 26 January 2011

File:Http://img714.imageshack.us/img714/8412/avatar551.jpg


Pseudo : Bussiere

Mon code source :

class Bussiere_1_01(object):
       def __init__(self):
            self.name = "bussiere"
            self.age = 27
            self.age_affectif = 10
            self.signe_chinois = "coq"
            self.defauts = ["Obsede","Vantard","Besoin constant de se montrer","\"lourd\"","Toujours envie d'aider les gens parfois un peu trop","Trop bavards parfois"]
            self.qualites = ["Calin","Attentionne","Protecteur","Tendance a aider les gens","gentil"]
            self.competences =["Serrurie":10,"Shibari":12,"Python":13,"Capoeira":12,"Photo":11,"Escalade":12,"Taijutsu":11,"Comedie":13,          "Baratin":14,"Discussion":14,"Conduite":7,"Cuisine":12,"Informatique":13,"Jeux":12,"Medecine":6,"Electricité":10,"Graphisme":8,"Comptabilite":8,"Droit":10,"Fiscalité":11,"Bricolage":11,"Musique":10]
            self.interet = ["manga": ["clamp","blame","GITS"],"anime":["Haruhi","GITS","Hellsing","Hanaukyo maid"],"livre":["gaiman","pratchett","hard science","sf"]]
           def caliner(self,personne=""):
            print("%s caline %s"%(self.name,personne))
       def proteger(self,personne=""):
            print("%s protege %s"%(self.name,personne))
       def servir(self,personne=""):
            print("%s sert %s"%(self.name,personne))
       def maturation(self):
            while self.age_affectif < self.age :
                        self.age_affectif += random.randint(0,1)
            print("en cour de maturation")
 
 
id_112573 = Bussiere_1_01()
print(id_112573.defauts)
id_112573.maturation()
letter = pickle.dumps(id_112573)
letter = zlib.compress(letter)


et le code qui va avec : File:Http://img828.imageshack.us/img828/8034/codesource.jpg