Commit 759c0f74 by BellCodeEditor

auto save

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