我在anaconda进口了scipy,我打电话给:
messy_list = ["a", 2, 3, 1, False, [1, 2, 3]]
for val in list(messy_list):
if type(val) != int:
messy_list.remove(val)
print(messy_list) # [2, 3, 1]
并致电:
from scipy import misc
从您的桌面调用图像,但我收到错误消息:
data = misc.imread(/Users/Desktop...)
答案 0 :(得分:-1)
尝试:
function mySum(A1NotationString){
var sum=0;
SpreadsheetApp.getActiveSheet().getRange(A1NotationString).getValues().forEach(function(item){sum+=Number(item);});
return sum;
}
function myAvg(A1NotationString){
var sum=0;
var n=0;
SpreadsheetApp.getActiveSheet().getRange(A1NotationString).getValues().forEach(function(item,i){sum+=Number(item);if(Number(item)>0){n=i+1;}});
return sum/n;
}
或者
from scipy import misc
assert misc
或者:
from scipy import misc
print(dir(misc))