Commit fadc9f99 by BellCodeEditor

save project

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