为什么会出错的?
L = range(1, 101)
print L[:10]
print L[2::3]
print L[4:51:5]
File "index.py", line 3
SyntaxError: Non-ASCII character '\xef' in file index.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
L = range(1, 101)
print L[:10]
print L[2::3]
print L[4:51:5]
File "index.py", line 3
SyntaxError: Non-ASCII character '\xef' in file index.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
2019-06-12
举报