请写出以下语句的输出结果?>>> list = ["a","b","c","d","e","f"]>>> print list[-3:]
举一反三
- 请写出下列语句的运行结果:>>>list=['a','b','c','d']>>>print(list[1:3])
- Python语句print(type([1,2,3,4]))的输出结果是【 】。 A: <class 'tuple'> B: <class 'dict'> C: <class 'set'> D: <class 'list'>
- Python语句print(type([1,2,3,4]))的输出结果是______。 A: <class ‘tuple’> B: <class ‘dict’> C: <class ‘set’> D: <calss ‘list’>
- 代码a=[1,2,3,4,5],以下输出结果正确的是( )。 A: print(a[:])=>[1,2,3,4] B: print(a[0:])=>[2,3,4,5] C: print(a[:100])=>[1,2,3,4,5] D: print(a[-1:])=>[1,2]
- Python语句print(type(['a','1',2,3]))的输出结果是哪一项? A: <class 'list'> B: <class 'disc'> C: <class tuple' > D: <class 'set'>