字符串也属于序列,可以通过索引访问。下列代码的输出结果为( )。word = 蒹葭苍苍,白露为霜。所谓伊人,在水一方。print(word.index("蒹葭苍苍,白露为霜。"))print(word.index("蒹葭萋萋,白露未晞。"))
(A)0 报错
(B) [0,1,2,3,4,5,6,7,8,9,] 报错
(C)[0,1,5,6]
(D)报错
参考答案
继续答题:下一题
(A)0 报错
(B) [0,1,2,3,4,5,6,7,8,9,] 报错
(C)[0,1,5,6]
(D)报错