Commit 4079d261 by BellCodeEditor

save project

parent aaa6f5de
Showing with 4 additions and 14 deletions
class Hero: print(悟空):
def __init__(self,name,hp,attack): print:name
self.level=1 print:92
self.name=name print:92
self.hp=hp
self.attack=attack
yase=Hero('yase',300,20)
hy=Hero('hy',250,23)
k=Hero('K',5600,199)
print(yase.attack)
print(hy.attack)
print(k.attack)
fhc=Hero('付浩诚',9999,0)
print(arte.name,arte.hp,arte.attack)
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