Commit 3e152573 by BellCodeEditor

save project

parent 82f31a7e
Showing with 10 additions and 0 deletions
class hero:
def __init__(pop,name,hp,att):
pop.name = name
pop.hp = hp
pop.ieve = 1
pop.att = att
lijunyi=hero("李俊毅是",250,0.1)
print(lijunyi.name)
print(lijunyi.hp)
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