已知c='python',则c[3:100]的结果是
A: thon
B: ython
C: python
D: hon
A: thon
B: ython
C: python
D: hon
举一反三
- “python”[0:2]的结果为 A: "py" B: "python" C: "pyo" D: "thon"
- 下列程序的运行结果是( )s = "Python""{0:3}".format(s) A: 'Pyth' B: 'Pyt' C: 'Python' D: ' thon'
- 已知列表lst = [ 1, 2, 'Python',(2,3)], 则表达式lst[ -1 ][ -1 ]的值是: A: 1 B: 2 C: 'Python' D: 3
- 对于列表 L=[1,2,'Python',[1,2,3,4,5]],则 L[-3] 的结果是________。 A: 1 B: 2 C: 'Python' D: [1,2,3,4,5]
- 已知列表ls = [7,"Python", [8,"LIST"], 9],则ls[2][-1][3]的运行结果是( ) A: [8,"LIST"] B: "T" C: "LIST" D: "Python"