Commit 29ec9c24 by BellCodeEditor

save project

parent 24b2cae3
Showing with 8 additions and 7 deletions
......@@ -7,13 +7,14 @@ class Hero:
aqi = Hero("阿七",300,20)
killer7 = Hero("柒",250,25)
print(aqi.hp)
print(killer7.hp)
#print("亚瑟的血量:",yase.hp)
#print("亚瑟的等级:",yase.level)
#print("亚瑟的攻击力:",yase.attack)
def killer():
aqi.level=aqi.level+1
aqi.hp=aqi.hp+10
aqi.attack=aqi.attack+5
killer()
\ No newline at end of file
self.level=self.level+1
seif.hp=self.hp+10
seif.attack=self.attack+5
aqi.killer()
print("等级为:",aqi.level)
print("血量为:",aqi.hp)
print("攻击力为:",aqi.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