Commit d47dffce by BellCodeEditor

save project

parent f47689a4
Showing with 8 additions and 0 deletions
class Hero:
level=1 #等级
hp=300 #血量
attack=20 #攻击力
yase =Hero() #创建一个具体的英雄对象,名叫亚瑟
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