Commit f42629b0 by BellCodeEditor

save project

parent 94dd2a00
Showing with 14 additions and 9 deletions
class hero():
def __inti__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("垭瑟"30020)
#houyi
\ No newline at end of file
class i():
def __init__(self,a,b,c):
d=1
self.hp=a
self.at=b
y=i("亚瑟","300","20")
h("后羿","240","23")
print(y.hp)
def upgrade():
y.self=self+1
y.hp=hp+50
y.at=at+4
\ 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