poython 不知哪里出错了?
代码及提示如下:
>>> s
'asdfadsf'
>>> for i in [None] + range(-1, -len(s), -1):
... print (s[:i])
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can only concatenate list (not "range") to list
非常感谢你的帮助。。。