实现逐个输出列表内元素字母,且有空格不换行
animal=['elephant','monkey','snake','tiger']
length=len(animal)
i=0
while i<length:
j=0
length1=len(animal[i])
while j<length1:
print(animal[i][j],"",end="") #"",空格,end="",不换行
j+=1
print( )
i+=1
''''''
已知list_a=[1,2,3,4,5,6],请通过两种方法实现,使list_a[6,5,4,3,2,1].
list_a=[1,2,3,4,5,6]
print(list_a[-1:-8:-1])'''
list_a=[]
list_2=[6,5,4,3,2,1]
list_a.extend(list_2)
print(list_a)