swap_item方法

swap_item(self, index1, index2)

直接交换两件物品。


def swap_item(self, index1, index2):
    ...
范围类型描述
index1int
index2int

也可以看看