运行使用pywinauto的脚本时,经常会出现此错误(9/10次)
function showVisibleMarkers() {
var bounds = map.getBounds(),
count = 0;
for (var i = 0; i < markers.length; i++) {
var marker = markers[i], // array indexes start at zero, but not our class names :)
infoPanel = jQuery('.workplace' + (i)); // array indexes start at zero, but not our class names :)
if (bounds.contains(marker.getPosition()) === true) {
infoPanel.show();
count++;
} else {
infoPanel.hide();
}
}
}
function setMarkers(map) {
for (var i = 0; i < beaches.length; i++) {
var beach = beaches[i],
myLatLng = new google.maps.LatLng(beach[1], beach[2]),
marker = new google.maps.Marker({
position: myLatLng,
title: beach[0],
icon: "/wp-content/uploads/2019/03/map-icon.png",
});
marker.setMap(map);
markers.push(marker);
}
}
有时没有错误,但是在大多数情况下,它会出错,因此花了我更长的时间来测试我的脚本。
导入win32ui 本身不会产生任何错误。有谁知道如何解决这个问题?
Python 3.4.5 Windows10 PyCharm社区版2018.3.5