1 changed files with 15 additions and 7 deletions
@ -1,9 +1,17 @@ |
|||
class personnage ( self, nom , cat): |
|||
self.nom = nom |
|||
self.pdv = 20 |
|||
self.exp = 1 |
|||
self.cat = cat |
|||
|
|||
|
|||
import random |
|||
|
|||
class Personnage : |
|||
def __init__ ( self, nom , cat ): |
|||
self.nom = nom |
|||
self.pdv = 20 |
|||
self.exp = 1 |
|||
self.cat = cat |
|||
|
|||
|
|||
|
|||
# def jet_attaque (self): |
|||
# print (random.randint(1,20)) |
|||
|
|||
|
|||
|
|||
print ("je m'appelle" ,nom, "j'ai" , pdv) |
|||
Loading…
Reference in new issue