Commit 60e58755 by BellCodeEditor

save project

parent a61c8c50
Showing with 3 additions and 3 deletions
class Hero: class Hero:
def __init__(self): def __init__(self):
self.level = 1 self.level = 200
self.HP = 300 self.HP = 5000
self.attack = 20 self.attack = 300
yase = Hero() yase = Hero()
print('等级:%d'%yase.level) print('等级:%d'%yase.level)
......
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