Commit 8acdc415 by BellCodeEditor

save project

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