Commit f42629b0 by BellCodeEditor

save project

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