Commit a47a0167 by BellCodeEditor

save project

parent 22354288
Showing with 17 additions and 0 deletions
class Fack:
def __init__(self,name,HP,attack):
self.name=name
self.level=12321313212132
self.HP=HP
self.attack=attack
def upgrade():
self= laoba.level+1
self=laoba.HP+100000000
self= laoba.attack+300000000
laoshi=Fack("老师",3444,70)
laoshi.upgrade
print("老八的血量",laoba.HP)
print("老八的攻击力",laoba.HP)
print("老八的等级",laoba.le)
\ 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