Commit 6fe1527d by BellCodeEditor

save project

parent 23310ef5
Showing with 5 additions and 3 deletions
class Here: class Hero:
def __init__(self): def __init__(self):
self.level=1 self.level=1
self.hp=300 self.hp=300
self.attack=20 self.attack=20
yase=Hero()
\ No newline at end of file print("yasexiulianfgwei:",yase.hp)
print("yaseattackwei:",yase.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