提取出数据字符串string后,先查找-的位置pospos= instr(string,"-")if pos0 then 如果有“-”,提取两个数字num1,num2 num1=left(string,pos-1) num2=right(string,len(string)-pos) 平均数avg=(num1+num2)/2else 如果没有“-”,