Commit 0a80d2f4 by BellCodeEditor

save project

parent 1f5cae6e
Showing with 11 additions and 1 deletions
class Fack:
def __init__(self,name,HP,attack):
self.name=name
self.level=12321313212132
self.HP=HP
self.attack=attack
laoba=Fack("老八",1111111111111111111111111111111111111111111111111111111111111111111111111111,121312312341222222222222222222222222222222)
laoshi=Fack("老师",111111111111111111111111111111111111111111111111111111111111111111111111111,9999999999999999999999999999999999999999999999)
print("老八的血量",laoba.HP)
print("老师的血量",laoshi.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