• 2022-06-09
    中国大学MOOC: 给出如下代码s = Python is Open Source!print(s[0:].upper())上述代码的输出结果是
  • PYTHON IS OPEN SOURCE!

    举一反三

    内容

    • 0

      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

    • 1

      给出如下代码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!

    • 2

      给出如下代码:‪‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‫s='PythonisOpenSource!'print(s[0:].upper())上述代码的输出结果是‪‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪()。 A: PYTHON B: PythonisOpenSource! C: PYTHONISOPENSOURCE! D: PYTHONISOPENSOURCE

    • 3

      给出如下代码 ‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬ s = "Alice" print(s[::–1]) 上述代码的输出结果是‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬

    • 4

      给出如下代码: ‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬ s=”abcdefghijklmn” print(s[1:10:3]) 上述代码的输出结果是