Commit 693feed6 by BellCodeEditor

save project

parent 935e1b60
Showing with 9 additions and 2 deletions
......@@ -3,5 +3,12 @@ class Hero:
self.level=1
self.hp=hp
self.attack=attack
def upgrade():
lijunyi.level=lijunyi.level+123456789
lijunyi.hp=lijunyi.hp+9876543210
lijunyi.attack=lijunyi.attack+999999999
lijunyi = Hero('李俊颐',555,55555555555555)
print(lijunyi.attack)
\ No newline at end of file
upgrade()
upgrade()
print(lijunyi.hp)
\ 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