Commit 607131b1 by BellCodeEditor

save project

parent a7e7e522
Showing with 7 additions and 7 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,name,hp,attack):
self.level=1 self.level=1
self.hp=30000000000 self.hp=hp
self.attack=100000000000 self.attack=attack
IOS=Hero() self.name=name
print("我IOS价值",yase.hp,"软妹币",性能分",yase.attack,"") iOS=Hero("苹果公司",300,20)
print("AI性能",yase.attack,"") ACH=Hero("安卓公司",200,15)
\ No newline at end of file \ 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