The slice of s from i to j is defined as the sequence of items with index k such that i <= k < j. If i&nbs***bsp;j is greater than len(s), use len(s). If i is omitted or None, use 0. If j is omitted or None, use len(s). If i is greater than or equal to j, the slice is empty.
>>> list = ['1', '2', '3', '4', '5'] >>> print list[10:] SyntaxError: Missing parentheses in call to 'print'. Did you mean print(list[10:])? 所以为什么不是报错!!