相关疑难解决方法(0)

如何在f#中创建CSV文件并将数据写入

我怎样才能在f sharp中创建一个csv文件并在其中写入以下记录类型?

    type test = { G:array<double>; P:array<double>; GG:array<double>; PP:array<double> } 

    let table = [for x in 0..(Un0.Length - 1) -> 
        let b = Un0.[x] in 
        if b=0.0 then {G=0.0; P=0.0; GG=0.0; PP=0.0}
        else {G=G_0.[x]/b; P=P0.[x]/b; GG=G0.[x]/b; PP=PP0.[x]/b}]
Run Code Online (Sandbox Code Playgroud)

f# f#-data

7
推荐指数
2
解决办法
4285
查看次数

标签 统计

f# ×1

f#-data ×1