Commit 0722a4a1 by BellCodeEditor

save project

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