Commit 01c79f27 by BellCodeEditor

save project

parent d6c81a0f
Showing with 11 additions and 0 deletions
class One:
    def __init__(nb,name,hp,harm,level):
        nb.hp=hp
        nb.harm=harm
        nb.level=level
laoliu = One("老六",300,20,1)
laoba = One("老八",240,23,1)
print("老六的血量是",laoliu.hp)
print("老八的血量是",laoba.hp)
 
\ 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