以下关于字符串处理正确的( )
A. 字符串是自带索引的,对变量word =”Python" ,word[1]是字符y,但是word[-1]会报越界错误。.
B. +号可以用来拼接两个字符串,对于以下代码的输出字符串是Python>>> prefix = "Py>>> prefix +’thon'
C. 字符串的索引有两个边界,前边界和后边界都是包括的。
D. 对于字符串”apple”,3*”apple"的结果为"3apple"。
下面代码的输出结果是( )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.']