_libs.hashtable.PyObjectHashTable.get_item
During handling of the above exception, another_libs.hashtable.PyObjectHashTable.get_item
我已经为此工作了三天了。任何帮助都将不胜感激!提前谢谢!!
我尝试使用for循环遍历列表(索引从0开始),并希望某个函数每隔10个索引执行一次。但是,由于我在该函数中将列表中的数字按10分组(例如,0-9、10-19、20-29等等),因此索引%10不起作用。有没有更有效的方法来做到这一点?我下面的代码可以工作,但我觉得有更好的方法吗?if(index>1 and index<10): func()
elif(index>10)