我有一个包含多个列表作为其元素的列表
eg: [[1,2,3,4],[4,5,6,7]]
Run Code Online (Sandbox Code Playgroud)
如果我使用内置的set函数从这个列表中删除重复项,我会收到错误
TypeError: unhashable type: 'list'
Run Code Online (Sandbox Code Playgroud)
我正在使用的代码是
TopP = sorted(set(TopP),reverse=True)
Run Code Online (Sandbox Code Playgroud)
其中TopP是一个列表,就像在例如Above
这个set()的用法是错误的吗?有没有其他方法可以对上面的列表进行排序?
有什么方法可以.mp3使用来流式传输仅音频文件()MPEG DASH。我正在寻找在HTML5不使用渐进式下载的情况下在chrome上运行音频的方法。有任何想法吗 ?
The title of this post is probably pretty vague. Here is what I need to know
If I use something like
if x in list
Run Code Online (Sandbox Code Playgroud)
how do I find the index in the list where a match occurs?