python通过加号运算符连接两个列表演示代码
inventory = ["sword", "armor", "shield", "healing potion"] chest = ["gold", "gems"] print "You find a chest which contains:" print chest print "You add the contents of the chest to your inventory." inventory += chest print "Your inventory is now:" print inventory