Commit 2dd1d840 by BellCodeEditor

save project

parent 717d2852
Showing with 6 additions and 2 deletions
class Hero:
\ No newline at end of file
def __init__(self):
self.level=1
self.hp=99
self.atttack=1000
wangyi=Hero()
print(wangyi.hp)
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