我需要为VSTS构建摘要选项卡开发一个相当复杂的UI。我使用VS Code作为代码编辑器。下面的url描述了如何使用Edge browser进行调试,但是这种方法需要不断打包和部署扩展到VSTS,这使得它非常耗时。
我尝试使用浏览器扩展中的视图和浏览器控制台中显示的以下消息直接加载.html (摘要选项卡)。
No handler found on any channel for message:
{"id":1,"methodName":"initialHandshake","instanceId":"VSS.Host
我尝试按降序对数组中的值进行排序。如果我按升序尝试,它可以工作,但当我按降序执行时,我会得到一个错误。
e = np.array([[5.,3.,8.],[6.,7.,1.],[4.,8.,2.]])
e.sort()
结果:
e = array([[3.,5.,8.],[1.,6.,7.],[2.,4.,8.]])
现在以相反的顺序:
e.sort(reverse=True)
结果:
TypeError: 'reverse' is an invalid keyword argument for this function
我也在from operator import i