Commit 61adef4a by BellCodeEditor

save project

parent 75c71ad0
Showing with 5 additions and 1 deletions
class Hero:
# attack:攻击
def__init__(self): # attack:攻击
self.level=1
self.hp=300
self.attack=20
yase = Hero()
print("yase的血量值为:",yase.hp)
......
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