Commit 4bdfed2c by BellCodeEditor

save project

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