Commit 23640058 by BellCodeEditor

save project

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