Commit a5e46f7b by BellCodeEditor

save project

parent c3417b99
Showing with 11 additions and 0 deletions
class hero():
def __init__(self, name, hp ,att):
self.lv = 1
self.name = name
self.hp = hp
self.att = att
yase = hero('yase',100,40)
print(f'级别:{yase.lv} 血量:{yase.hp} 攻击力:{yase.att}')
\ 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