Commit cedc8160 by BellCodeEditor

save project

parent 9e406c6f
Showing with 10 additions and 2 deletions
......@@ -5,5 +5,13 @@ class Hero:
self.hp=hp
self.acttack=acttack
yase=Hero("亚瑟",1,300,20)
tiny=Hero("颜廷宇是一个傻叉",0,1,-30)
print(tiny.name)
print(yase.name)
def LevelUp():
yase.level=yase.level+1
yase.hp=yase.level+50
yase.acttack=yase.acttack+4444
LevelUp()
LevelUp()
print(yase.acttack)
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