Commit fb3bd71c by BellCodeEditor

save project

parent ba3533df
Showing with 19 additions and 9 deletions
class i(): class i:
def __init__(self,a,b,c): def __init__(self,name,hp,at):
d=1
self.hp=a self.level=1
self.at=b self.name=name
y=i("亚瑟","300","20") self.hp=hp
h("后羿","240","23") self.at=at
print(y.hp) y=i("亚瑟",300,20)
\ No newline at end of file def q():
y.level=y.level+1
y.hp=y.hp+50
y.at=y.at+4
q()
q()
print(y.level)
print(y.name)
print(y.hp)
print(y.at)
\ 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