• 2022-06-09
    字符串s=“python is an excellent language”,运行s.split()后结果是哪个?
    A: python is an excellent language
    B: ‘python’ ‘is’ ‘an’ ‘excellent’ ‘language’
    C: [‘python’,‘is’,‘an’, ‘excellent’, ‘language’]
    D: [‘python’;‘is’;‘an’; ‘excellent’; ‘language’]
  • C

    举一反三

    内容

    • 0

      下面代码的输出结果是( )。s = "The python is a good language."print(s.split(' ')) A: Thepythonisagoodlanguage. B: ['The', 'python', 'is', 'a', 'good', 'language.'] C: The python is a good language. D: The, python, is, a, good, language

    • 1

      'PYTHON IS A LANGUAGE'.SPLIT()结果的类型是

    • 2

      下面代码的输出结果是( )。s1 = "The python language is a scripting language.";s1.replace('scripting','general');print(s1) A: The python language is a scripting language. B: ["The","python","language","is","a","scripting","language."] C: The python language is a general language. D: 系统报错

    • 3

      下面代码的输出结果是‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‪‫ s1 = "The python language is a scripting language."s1.replace('scripting','general')print(s1) A: The python language is a scripting language. B: 系统报错 C: The python language is a general language. D: ['The', 'python', 'language', 'is', 'a', 'scripting', 'language.']

    • 4

      下面代码的输出结果是‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬‬s1 = "The python language is a scripting language."s1.replace('scripting','general')print(s1) A: The python language is a scripting language. B: ['The', 'python', 'language', 'is', 'a', 'scripting', 'language.'] C: The python language is a general language. D: 系统报错