Commit c6d69fb8 by BellCodeEditor

save project

parent 5126c71f
Showing with 14 additions and 2 deletions
......@@ -3,4 +3,16 @@ class Hero:
self.levef=1
self.hp=300
self.attack=20
yese=Hero()
\ No newline at end of file
yese=Hero()
print('yese',300,20)
def upgrade():
yese.levef1=yese.levef1+1
yese.hp=yese.hp=50
yese.attack=yese.attack+4
upgrade()
upgrade()
print(yese.hp)
print(yese.levef1)
print(yese.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