Commit 4bdfed2c by BellCodeEditor

save project

parent 24ba1acd
Showing with 5 additions and 10 deletions
class Hero: bros = ["刘备","关羽","张飞"]
def __init__(self,name,hp,ability): bros[0]="关羽"
self.hp = hp bros[1]="刘备"
self.ability = ability print(bros)
\ No newline at end of file
yitaqi = Hero()
\ 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