小编Jos*_*uel的帖子

在Julia上同时写入多个文件

如何在Julia中同时打印多个文件?有没有更清洁的方式:

for f in [open("file1.txt", "w"), open("file2.txt", "w")]
    write(f, "content")
    close(f)
end
Run Code Online (Sandbox Code Playgroud)

printing julia

3
推荐指数
1
解决办法
134
查看次数

标签 统计

julia ×1

printing ×1