Commit e675b230 by BellCodeEditor

save project

parent 7413dd34
Showing with 7 additions and 2 deletions
......@@ -6,5 +6,10 @@ class Hero:
self.d=d
yase=Hero("yase",300,20)
houyi=Hero("hpuyi",240,23)
print(yase.hp)
print(houyi.hp)
def up(self):
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.d=yase.d+4
up
'''print(yase.hp)
print(houyi.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