Commit ec6d8bf3 by BellCodeEditor

save project

parent 70850cf8
Showing with 11 additions and 0 deletions
class Tank:
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
虎式=Tank('虎式',1500,220)
豹式=Tank('豹式',1000,160)
print('虎式的血量值为:',虎式.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