我生成了数据 - 1000行,使用了https://www.mockaroo.com
Matthew,Richards,2/2/1992,mrichards0@sbwire.com,86-(493)702-4682,0284 Artisan Avenue
Arthur,Myers,5/30/1959,amyers1@globo.com,56-(105)354-8682,5 Center Hill
Stephanie,Hayes,8/6/1976,shayes2@cdc.gov,62-(945)765-1251,979 Aberg Parkway
Lisa,Reynolds,5/10/1956,lreynolds3@i2i.jp,256-(450)430-9937,8 Aberg Terrace
Kathleen,Gonzales,12/11/1971,kgonzales4@sciencedirect.com,86-(745)695-8094,520 Basil Court
...
...
...
现在我需要将它添加到C中的数组中,所以我希望它看起来像这样:
{"Matthew","Richards","2/2/1992","mrichards0@sbwire.com","86-(493)702-4682","0284 Artisan Avenue"},
{"Arthur","Myers","5/30/1959","amyers1@globo.com","56-(105)354-8682","5 Center Hill"},
...
...
...
你知道如何添加引号和括号吗?是否有应用/程序可以做到这一点?
答案 0 :(得分:0)
打开你最喜欢的文本编辑器,如MS Word,Notepad ++,Sublime Text,Atom等...甚至Windows附带的记事本都可以做到这一点
寻找查找和替换选项。 (通常按Ctrl + F执行),它通常也在"编辑"在菜单栏上。
将所有,
替换为","