Commit 827a13de by BellCodeEditor

save project

parent 4dbb61db
Showing with 12 additions and 0 deletions
class hero():
def __init__(self,name,level,hp,attack):
self.name = name
self.level = level
self.hp = hp
self.attack = attack
yase = hero("yase",15,21000,100)
print(yase.name,yase.level,yase.hp,yase.attack)
jing = hero("jing",15,21000,10000)
print(jing.name,jing.level,jing.hp,jing.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