Commit bef7f9aa by BellCodeEditor

save project

parent f8647a88
Showing with 7 additions and 7 deletions
class Sans: class Hero:
def_init_(self): def __init__(self):
self.lever = 1 self.lever = 1
self.HP = 1 self.HP = 1
self.attack = 9999999999999999999999 self.attack = 99
yase = Sans() yase = Hero()
print('等级:%d'%yase.lever) print('等级:%d'%yase.lever)
print('等级:%d'%yase.HP) print('血量:%d'%yase.HP)
print('等级:%d'%yase.attack) print('伤害:%d'%yase.attack)
\ No newline at end of file \ 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