设s='abcdefg',下列运行结果正确的是()。

设s='abcdefg',下列运行结果正确的是()。

A.s[3]值是'd'

B.s[3:5]值是'de'

C.s[:5]值是'abcdf'

D.s[::-1]值是'gfedcba'

正确答案:ABCD

猜你喜欢