Commit 976d7929 by BellCodeEditor

save project

parent da6dc8f6
Showing with 6 additions and 10 deletions
...@@ -4,13 +4,8 @@ class Hero: ...@@ -4,13 +4,8 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def qi(): Q=Hero("q",180,300)
l.level=l.level+1 K=Hero("K",200,340)
l.hp=l.hp*l.hp J=Hero('j',123,90)
l.attack=l.attack*l.attack print(J.hp)
l=Hero("l",180,300) print(Q.hp)
print(l.hp) \ No newline at end of file
print(l.attack)
qi()
print(l.hp)
print(l.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