Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想导入一个文本文件,其中的列由可变数量的空格分隔:
A 123 B 222 C 211
运行这个不会很好:
f: ("CI"; " ") 0: `$(":myfile")
您可以在导入时去除多余的空格:
("CI";" ")0:(ssr[;" ";" "]/) each read0`:myfile A B C 123 222 211
不过,这可能会大大减慢速度。
你能从源头上修复数据吗?为什么有可变数量的空格?