给出如下代码:() TempStr = “Hello World” 以下选项中可以输出“World”子串的是
(A)print(TempStr[–5: –1])
(B)print(TempStr[–5:0])
(C)print(TempStr[–4: –1])print(TempStr[–4: –1])
(D)print(TempStr[–5:])
参考答案
继续答题:下一题
(A)print(TempStr[–5: –1])
(B)print(TempStr[–5:0])
(C)print(TempStr[–4: –1])print(TempStr[–4: –1])
(D)print(TempStr[–5:])