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