Commit ff22ab65 by BellCodeEditor

auto save

parent cff640da
Showing with 5 additions and 5 deletions
class Hero:
class Hero :
def __init__(self):
self.hp=300
self.level=1
self.hp=200
self.attack=20
sunwukong=Hero()
print(sunwukong.attack)
\ No newline at end of file
yase=Hero()
print(yase.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