Commit 27b99437 by BellCodeEditor

auto save

parent c5fb3a39
Showing with 7 additions and 5 deletions
class hero: class hero:
def __init__(a): def __init__(a,hp,level,attack,name):
a.hp=300 a.hp=hp
a.level=1 a.level=1
a.attack=20 a.attack=attack
yase=hero() a.name=name
\ No newline at end of file yase=hero("亚瑟",300,20)
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