Commit 81e6f3b1 by BellCodeEditor

save project

parent e3a9e81d
Showing with 7 additions and 5 deletions
class Hero:
def __inir__(self):
self.hp = 32
self.leval = 2
houyi = Hero()
print(houyi.hp)
def __inir__(self,names,ages,hps,levals):
self.name = names
self.age = ages
self.hp = hps
self.leval = levals
houyi = Hero("后忆",100,100000,1980)
print(houyi.name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment