Commit 23640058 by BellCodeEditor

save project

parent 378f70b0
Showing with 9 additions and 7 deletions
class Hero
def __init__(salf):
class Hero:
def __init__(salf,name,levelo,ateack):
self.level=10000
self.hp=1000
self.ateack=200
yase=Hero()
print(yase.hp)
\ No newline at end of file
self.name=name
self.hp=hp
self.ateack=ateack
yase=Hero("亚瑟"30020)
yase=Hero("后羿"25023)
print("亚瑟的血量",yase.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