阅读背景:

为什么我在尝试修改字典时得到这个错误:“TypeError: unhashable类型:‘slice’

来源:互联网 

I'm trying to build a function which gets as an input a string and a number k, and returns a dictionary whose keys are the string of length k from the original string and the value for each key is a sequence of the indexes at which the string appeared.I'm trying to build a function which gets as an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: