Commit c9435c6a by BellCodeEditor

save project

parent d6c81a0f
Showing with 33 additions and 0 deletions
class H:
def __init__(self,n,hp,at):
self.lv=1
self.n=n
self.hp=hp
self.at=at
ya=H("ya",200,20)
def a1():
ya.lv=ya.lv+1
ya.hp=ya.hp+50
ya.at=ya.at+4
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
a1()
print("ya血量:",ya.hp)
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