Commit a3e0d9f8 by BellCodeEditor

save project

parent 17ee4555
Showing with 3 additions and 2 deletions
class Hero: class Hero:
def __init__(self): def __init__(self):
self.level=1 self.level=1
self.hp=300 self.name=yase
self.attack=20 self.hp=999999999999
self.attack=999999
yase=Hero() yase=Hero()
print("yase的血量为:",yase.hp) print("yase的血量为:",yase.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