我一直收到这个错误'list' object has no attribute 'priority',我不知道如何修复它。然后我按pop取出每个项目,每个leftChild和rightChild都应该有,例如:[("c", 0.1231)] it run,并打印父级,直到我运行显示错误消息的insert函数。
Web页面和Python脚本在Raspberry Pi (没有互联网连接)中都是本地的。 var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechangexmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");