Commit 4e9cda52 by BellCodeEditor

save project

parent d6dd14a4
Showing with 32 additions and 0 deletions
...@@ -3,10 +3,40 @@ class Hero: ...@@ -3,10 +3,40 @@ class Hero:
self.level = level self.level = level
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
def a(self):
self.level = self.level*10
self.hp = self.hp*10
self.attack = self.attack*10
zhiyin = Hero("zhiyin",1.145141919810,1145141919810,1145141919810) zhiyin = Hero("zhiyin",1.145141919810,1145141919810,1145141919810)
ji = Hero("ji",1.145141919810,1145141919810,1145141919810) ji = Hero("ji",1.145141919810,1145141919810,1145141919810)
kunkun = Hero("kunkun",1.145141919810,1145141919810,1145141919810) kunkun = Hero("kunkun",1.145141919810,1145141919810,1145141919810)
caixukun = Hero("kunkun",1.145141919810,1145141919810,1145141919810) caixukun = Hero("kunkun",1.145141919810,1145141919810,1145141919810)
# def a():
# zhiyin.level=zhiyin.level*10
# zhiyin.hp=zhiyin.hp*10
# zhiyin.attack=zhiyin.attack*10
# ji.level=ji.level*10
# ji.hp=ji.hp*10
# ji.attack=ji.attack*10
# kunkun.level=kunkun.level*10
# kunkun.hp=kunkun.hp*10
# kunkun.attack=kunkun.attack*10
# caixukun.level=caixukun.level*10
# caixukun.hp=caixukun.hp*10
# caixukun.attack=caixukun.attack*10
print(zhiyin.level) print(zhiyin.level)
print(zhiyin.hp) print(zhiyin.hp)
print(zhiyin.attack) print(zhiyin.attack)
...@@ -19,3 +49,5 @@ print(kunkun.attack) ...@@ -19,3 +49,5 @@ print(kunkun.attack)
print(caixukun.level) print(caixukun.level)
print(caixukun.hp) print(caixukun.hp)
print(caixukun.attack) print(caixukun.attack)
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