首页 › 答案 › 题库 › 慕课 › 未分类

给出如下代码s='Pythonisbeautiful!'可以输出“python”的是?

给出如下代码s='Pythonisbeautiful!'可以输出“python”的是?
A.print(s[0:6].lower())
B.print(s[:–14])
C.print(s[0:6])
D.print(s[–21:–14].lower)
正确答案:print(s[0:6].lower())