Commit a6872204 by BellCodeEditor

save project

parent bdd95907
Showing with 7 additions and 5 deletions
class One: class One:
def __init__(fff): def __init__(fff,name,hp,harm,level):
fff.hp=300 fff.hp=hp
fff.harm=20 fff.harm=harm
fff.level = 1 fff.level = level
f=One() f=One('f',300,20,1)
c=One('c',300,20,1)
print('fff',f.hp) print('fff',f.hp)
print('c',c.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