parameters: ()
return_statement: return width * sum(result)
docstring: 并行计算元周率
docstring_summary: 并行计算元周率
docstring_tokens: 并行计算元周率
function: def calc_pi2():
      '并行计算元周率'
      pool = Pool(processes=cpu_count)
      result = pool.map(calc_sum, split_data(num_rec, cpu_count))
      return width * sum(result)
function_tokens: def calc_pi2 ( ) : pool = Pool ( processes = cpu_count ) result = pool . map ( calc_sum , split_data ( num_rec , cpu_count ) ) return width * sum ( result )