已知字符串a="python",则a[1]的值为
A: "p"
B: "py"
C: "Py"
D: "y"
A: "p"
B: "py"
C: "Py"
D: "y"
举一反三
- 已知字符串a="python",则a[1]的值为() A: A:"p" B: B:"py" C: C:"Py" D: D:"y"
- 已知字符串a="python",则print(a[ 1 ]+a[ 3 ])的值为() A: "yth" B: "yt" C: "py" D: "yh"
- 已知字符串a="python",则a[-1]的值为() A: "p" B: "n" C: "y" D: "o"
- 已知字符串st='Python',执行语句x=a[::2]后,变量x的值为?( ) A: 'Pyt' B: 'Py' C: 'yhn' D: 'Pto'
- 已知a=[[1,2,3],[2,2],[3,2,1]],则a[1][1]+a[-1][-1]结果是 A: 1 B: 2 C: 3 D: 4