Commit 5b643bfa by BellCodeEditor

save project

parent 801910b6
Showing with 11 additions and 8 deletions
class Bone:
def __init__(sans):
sans.level=0
sans.hp=1
sans.attack=999
sans = Bone()
print(sans.level)
def __init__(UT,name,hp,attack):
UT.name=name
UT.hp=hp
UT.attack=attack
sans = Bone("杉斯",1,999)
paparuls = Bone("派帕瑞斯",100,20)
print(sans.name)
print(sans.hp)
print(sans.attack)
\ No newline at end of file
print(sans.attack)
print(paparuls.name)
print(paparuls.hp)
print(paparuls.attack)
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