Commit d5a8af11 by BellCodeEditor

save project

parent 122e326d
Showing with 11 additions and 2 deletions
class
\ No newline at end of file
class Fishermen:
def __init__(self,name,hp,atk):
self.level=1
self.name=name
self.hp=hp
self.atk=atk
travelY=Fishermen('Ying',916,68)
travelK=Fishermen('Kong',968,64)
print(travelY.name,travelY.hp,travelY.atk)
\ 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