下列程序输出的结果是:( ) s="test,great,good,high"a=s.split(',')print(a[1])
A: great
B: good
C: test
D: high
A: great
B: good
C: test
D: high
举一反三
- 下列语句输出的结果是:s="test,great,good,high"a=s.split(',')print(a[1])
- 阅读程序,写出下列程序运行结果。def split(s): return s.split('a') s='an apple a day' print(split(s),s.split())
- 下面代码的输出结果是( )。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
- 下列程序段的输出结果是 a = [1,2,3,4,5] b = a c = a[:] b[1] = 6 c[2] = 5 print(a[0]+a[1]+a[2])
- 以下程序的输出结果是: a = [“a”,“b”,“c”] b = a[::-1] print(b)