self.players
является списком. .append
print(self.players[0])
self.players[0].method()
self.players[0].attribute
my_instance = self.players[0]
my_var = MyClass()
screen send_detective_screen:
# A map as background.
add "europe.jpg"
# A drag group ensures that the detectives and the cities can be
# dragged to each other.
draggroup:
# Our detectives.
drag:
drag_name "Ivy"
child "ivy.png"
droppable False
dragged detective_dragged
xpos 100 ypos 100
drag:
drag_name "Zack"
child "zack.png"
droppable False
dragged detective_dragged
xpos 150 ypos 100
# The cities they can go to.
drag:
drag_name "London"
child "london.png"
draggable False
xpos 450 ypos 140
drag:
drag_name "Paris"
draggable False
child "paris.png"
xpos 500 ypos 280
</>
Это будет маленький шаг для всего человечества, но гигантский шаг для одного человека.
P.s. Код надо обернуть тэгом code для корректного отображения.