有字符串'hello',下列索引能够提取出'ell'的()
2022-07-20 15:58 Python语言应用
有字符串'hello',下列索引能够提取出'ell'的()
A.'hello'[-4:-2]
B.'hello'[3]
C.'hello'[1]
D.'hello'[1:4]
正确答案:AD
有字符串'hello',下列索引能够提取出'ell'的()
A.'hello'[-4:-2]
B.'hello'[3]
C.'hello'[1]
D.'hello'[1:4]