下面代码的输出结果是( )s="The python language is a scripting language."print(s.split(" ")) #引号之间有空格
A: The python language is a scripting language.
B: ['The', 'python', 'language', 'is', 'a', 'scripting', 'language.']
C: 'The', 'python', 'language', 'is', 'a', 'scripting', 'language.'
D: ['The' 'python' 'language' 'is' 'a' 'scripting' 'language.']
A: The python language is a scripting language.
B: ['The', 'python', 'language', 'is', 'a', 'scripting', 'language.']
C: 'The', 'python', 'language', 'is', 'a', 'scripting', 'language.'
D: ['The' 'python' 'language' 'is' 'a' 'scripting' 'language.']
举一反三
- 下面代码的输出结果是( )。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: 系统报错
- 下面代码的输出结果是 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.']
- 下面代码的输出结果是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: 系统报错
- 下面代码的输出结果是( )。s1 = "The python language is a scripting language."s1 = 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.
- 下面代码的输出结果是s = "The python language is a multimodel language."print(s.split(' ')) A: ['The', 'python', 'language', 'is', 'a', 'multimodel', 'language.'] B: Thepythonlanguageisamultimodellanguage. C: 系统报错 D: The python language is a multimodel language.