我实施了一个数据挖掘算法。我最小的物体是一套。集合可以包含单个项目或多个项目(项目集)。我需要在字典中计算这些集合的出现次数:
Dict={set([<some items>] : count)}
我需要这样的数据类型,原因如下:
请您在python中建议一种最简单的方法。
答案 0 :(得分:2)
document.addEventListener("webkitfullscreenchange", function () {
if(document.webkitIsFullScreen === true) {
document.querySelector('.active webview').contentWindow.postMessage('fullscreen, enter', 'http://'+viewer.app.networkHost+':'+viewer.app.networkPort+'/*');
document.body.webkitRequestFullscreen();
$("#presenter, #slide-container .owl-item").addClass('fullscreen tenTwenty');
$("#viewer-container, #slide-container").addClass('fullscreen thirteenSix');
$("#scroll-left, #scroll-right, #scroll-top").addClass('scroll-fullscreen');
$('.fullscreen').width(screen.width);
$('.fullscreen').height(screen.height);
$('#slide-container').trigger('refresh.owl.carousel');
} else {
console.log('not fullscreen');
document.webkitCancelFullScreen();
document.querySelector('.active webview').contentWindow.postMessage('fullscreen, exit', 'http://'+viewer.app.networkHost+':'+viewer.app.networkPort+'/*');
$('.tenTwenty').width(1024); $('.tenTwenty').height(768);
$('.thirteenSix').width(1366); $('.thirteenSix').height(768);
$("#presenter, #viewer-container, #slide-container, #slide-container .owl-item").removeClass('fullscreen tenTwenty thirteenSix');
$("#scroll-left, #scroll-right, #scroll-top").removeClass('scroll-fullscreen');
$('#slide-container').trigger('refresh.owl.carousel');
}
viewer.showControls();
}, false);