执行以下程序,输出结果是:() st='python'st.upper()print(st)
A: PYTHON
B: ‘python’
C: ‘PYTHON’
D: python
A: PYTHON
B: ‘python’
C: ‘PYTHON’
D: python
举一反三
- print("python".upper())的运行结果为______ A: "python" B: "PythoN" C: "PYTHon" D: "PYTHON"
- 执行以下代码输出的是a = 〃Python〃print(a.upper()) 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!
- 语句print("{0:=^20}".format("Python"))输出结果是: ==============Python|=======Python=======|Python|Python==============
- 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