s = "python" print(s[::-2] 以上代码的运行结果是
A: python
B: yhn
C: nhy
D: nohtyp
A: python
B: yhn
C: nhy
D: nohtyp
举一反三
- Python 语句 s={'a',1,'b',2}; print(s['b']) 的运行结果是
- 如下代码输出结果是 ( )s = 'Python is Open Source!'print(s[0:].upper()) A: PYTHON IS OPEN SOURCE B: Python is Open Source! C: PYTHON D: PYTHON IS OPEN SOURCE!
- Python语句s={‘a’,1,’b’,2};print(s[‘b’])的运行结果是_______。 A: 语法错 B: ‘b’ C: 1 D: 2
- s = 'Python is Open Source!'print(s[0:].upper())上述代码的输出结果是 A: PYTHON IS OPEN SOURCE! B: Python is Open Source! C: PYTHON IS OPEN SOURCE D: PYTHON
- 给出如下代码s = 'Python is Open Source!'print(s[0:].upper())上述代码的输出结果是( )。 A: PYTHON B: Python is Open Source! C: PYTHON IS OPEN SOURCE! D: PYTHON IS OPEN SOURCE