Commit 17e6defd by BellCodeEditor

save project

parent 70850cf8
Showing with 11 additions and 0 deletions
class Pokemon:
def __init__(self,name,hp,JN1,JN2):
self.name=name
self.hp=hp
self.JN1=JN1
self.JN2=JN2
MWZZ= Pokemon("妙蛙种子",15,"撞击 15","藤鞭 40")
print("妙蛙种子的血量为:",MWZZ.hp)
print("妙蛙种子的技能是:",MWZZ.JN1)
print("妙蛙种子的技能是:",MWZZ.JN2)
\ 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