Commit fadc9f99 by BellCodeEditor

save project

parent 505ddc01
Showing with 9 additions and 6 deletions
class ying:
def __init__(self):
self.hp=3000
def __init__(self,name,hp,kill):
self.name=name
self.hp=hp
self.ex=1
self.kill=200
ys=ying()
print(ys.hp)
\ No newline at end of file
self.kill=kill
ys=ying("yase",3000,260)
hy=ying("houyi",2300,330)
print(ys.hp)
print(hy.kill)
\ No newline at end of file
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