Difference between revisions of "User:Bussiere"

From Electrolab
Jump to: navigation, search
Line 39: Line 39:
  
 
et le code qui va avec :
 
et le code qui va avec :
 +
 +
 
[[File:Codesource.jpg‎]]
 
[[File:Codesource.jpg‎]]

Revision as of 15:07, 26 January 2011

Avatar 551.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 :


Codesource.jpg