a=[(1, Dict('A' => 0, 'G' => 1, 'T' => 0, 'C' => 0)),(7, Dict('A' => 3, 'G' => 1, 'T' => 0, 'C' => 2))]
2-element Vector{Tuple{Int64, Dict{Char, Int64}}}:
(1, Dict(‘A’ => 0, ‘G’ => 1, ‘T’ => 0, ‘C’ => 0))
(7, Dict(‘A’ => 3, ‘G’ => 1, ‘T’ => 0, ‘C’ => 2))
using DelimitedFiles
writedlm("hhh.dlm",a,'\t')
b=readdlm("hhh.dlm",'\t')
2×2 Matrix{Any}:
1 “Dict(‘A’ => 0, ‘G’ => 1, ‘T’ => 0, ‘C’ => 0)”
7 “Dict(‘A’ => 3, ‘G’ => 1, ‘T’ => 0, ‘C’ => 2)”
b[1,2]
“Dict(‘A’ => 0, ‘G’ => 1, ‘T’ => 0, ‘C’ => 0)”
我其实的本意是想让他返回一个字典的,然后根据key去取value,可是读进去输出为一个字符串了,各位大佬帮我看下我要在哪更改呢一下呢??