let stringList = ["one"; "two"; "three"]
如何在 F# 中打印 stringList?
let stringList = ["one", "two", "three"]
let function2() =
for i in 2 .. 3 do
printf " "
printfn "i"
function2()
我期待的是:“一”、“二”、“三”
let l = ["one"; "two"; "three"]
printf "%A" l
在此处找到有关打印的文档:https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/plaintext-formatting