下面代码程序输出的值是多少()?a="Hello world"print(a[-1])
A: H
B: d
C: o
D: l
A: H
B: d
C: o
D: l
举一反三
- 下面代码程序输出的值是多少()?a="Hello world"print(a[: : -1]) A: Hello worl B: dlrow olleH C: dlrow olle D: Hello world
- 下面代码程序输出的值是多少()?a="Hello world"print(a[0: 7]) A: "Hello world" B: "Hello wo" C: "Hello w" D: "o"
- 下面代码程序输出的值是多少()?a="Hello world"b="o"print(b is in a) A: Ture B: False C: True D: Flase
- 以下代码的输出是() str3 = 'Hello World!' print(str3.split()) A: ['Hello', 'World!'] B: ['Hello', 'World','!'] C: ['H','e','l','l','o',' ','W','o','r','l','d','!'] D: ['H','e','l','l','o','','W','o','r','l','d','!']
- 下面代码的输出结果是li = ["hello",'se',[["m","n"],["h","kelly"],'all'],123,446]print(li[2][1][1]) A: n B: h C: m D: kelly