您的位置:68399皇家赌场 > 集群主机 > Concatinate two lists

Concatinate two lists

发布时间:2019-06-15 17:15编辑:集群主机浏览(176)

    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
    

    本文由68399皇家赌场发布于集群主机,转载请注明出处:Concatinate two lists

    关键词: 68399皇家赌场 Python List