新浦京娱乐场官网:Display a slice

2019-06-19 20:03栏目:技术创新

inventory = ('a',
             'b',
             'c',
             'd')

begin = int(raw_input('nEnter the index number to begin a slice: '))
end = int(raw_input('Enter the index number to end the slice: '))
print 'inventory[', begin, ':', end, ']tt',
print inventory[begin:end]

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:新浦京娱乐场官网:Display a slice