|
|
(6 intermediate revisions by one user not shown) |
Line 1: |
Line 1: |
− | | + | [[File:Avatar_551.jpg]] |
− | [[File:http://img714.imageshack.us/img714/8412/avatar551.jpg]] | + | |
| | | |
| | | |
| Pseudo : Bussiere | | Pseudo : Bussiere |
| | | |
− | Mon code source :
| + | Intérets : Python, Informatique, Electricité |
− | <nowiki>
| + | |
− | | + | |
− | lass 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)
| + | |
− | | + | |
− | | + | |
− | | + | |
− | </nowiki>
| + | |
− | | + | |
− | | + | |
− | et le code qui va avec :
| + | |
− | [[File:http://img828.imageshack.us/img828/8034/codesource.jpg]]
| + | |