Commit 0722a4a1 by BellCodeEditor

save project

parent 298facad
Showing with 10 additions and 9 deletions
class h: class h:
def __init__(self): def __init__(self,name,hp,attack):
self.level=15 self.name=name
self.hp=300000 self.hp=hp
self.attack=20000 self.attack=attack
yase=h() suence=h("孙策",11110000000,22220000000)
print(yase.hp) liaokeneng=h("了可能",1231234,2343)
print(yase.level) print(suence.name)
print(yase.attack) print(suence.hp)
\ No newline at end of file print(suence.attack)
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