Commit 50f531e6 by BellCodeEditor

save project

parent ef39df1c
Showing with 16 additions and 0 deletions
class hero:
def __init__(self):
self.level=1
self.hp=300
self.attack=30000000000
self.defense=1500
daji=hero()
print(daji.level)
class cake:
def __init__(self):
self.size=20
self.naiyou="pure"
self.fruit="apple"
cake=cake()
print(cake.fruit)
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