执行以下代码输出的是a = 〃Python〃print(a.upper())
A: PYTHON
B: python
C: Python
D: "Python"
A: PYTHON
B: python
C: Python
D: "Python"
举一反三
- 以下代码的输出结果是什么print("Python!"[:-1]) A: Python! B: python C: Python D: python!
- 如下代码输出结果是 ( )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!
- 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
- print("python".upper())的运行结果为______ A: "python" B: "PythoN" C: "PYTHon" D: "PYTHON"
- 执行以下程序,输出结果是:() st='python'st.upper()print(st) A: PYTHON B: ‘python’ C: ‘PYTHON’ D: python