Commit 6fb7df1a by BellCodeEditor

save project

parent e287988a
Showing with 4 additions and 1 deletions
......@@ -4,12 +4,14 @@ class Hero:
self.name = name
self.hp = hp
self.attack = attack
def yaseshenji:
def yaseshenji():
yese.level+=1
yese.hp+=1
yese.attack+=1
yese = Hero("亚瑟",300,20)
houyi = Hero("后羿",240,23)
yaseshenji()
yaseshenji()
print("亚瑟等级",yase.level)
print("亚瑟血量",yese.hp)
print("亚瑟攻击力",yese.attack)
\ 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