Commit 8f9078dd by BellCodeEditor

save project

parent c33e3851
Showing with 7 additions and 4 deletions
class hero:
class Hero:
def __init__(self):
self.level=100
self.hp=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
self.hp=10000000000000000000
self.attack=2
yandi = hero
print("yandide'xue'liangdexueliang")
yandi = Hero()
print("yandi的等级为:",yandi.level)
print("yandi的血量为:",yandi.hp)
print("yandi的攻击力为:",yandi.attack)
\ 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