我想将子字符串数组转换为 Char 或 String 值。
我拆分了一个字符串以获得一个元素数组
mdSplit = split(mdSub,r"[ ]+")
4-element Array{SubString{String},1}:
"73"
"G"
"T"
""
Run Code Online (Sandbox Code Playgroud)
但现在我想遍历这个数组,如果值是一个字符,我要把那个字符转换成一个字符,或者把它作为一个字符复制一个已经尝试过转换和解析
convert(Char,string(mdSplit[2]))
Run Code Online (Sandbox Code Playgroud) 在我的主目录上空间非常有限的集群上工作,所以我想将 ~/.conda/pkgs 文件夹的主目录中的默认设置设置为另一个包,我似乎无法弄清楚如何做到这一点。
我曾尝试将 .condarc 文件与 pkg_dirs 一起使用:
channels:
- conda-forge
- bioconda
- defaults
pkg_dirs: my/new/folder
Ideally this would make the creation and installation of the .conda folder in the new path not my home directory
Run Code Online (Sandbox Code Playgroud)