Commit 81e6f3b1 by BellCodeEditor

save project

parent e3a9e81d
Showing with 7 additions and 5 deletions
class Hero: class Hero:
def __inir__(self): def __inir__(self,names,ages,hps,levals):
self.hp = 32 self.name = names
self.leval = 2 self.age = ages
houyi = Hero() self.hp = hps
print(houyi.hp) 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