for /f "tokens=1,2,3,4,5,6 delims=," %a in (user.csv) do @echo %a %b %c %d 谁帮我翻译下这个语句

问题描述:

for /f "tokens=1,2,3,4,5,6 delims=," %a in (user.csv) do @echo %a %b %c %d 谁帮我翻译下这个语句

在"user.csv"这个文件里面,每行都以“,”为分隔符,形成1、2、3、4、5、6...列,并输出前面4列(@echo %a %b %c %d ).这样每行都输出前面4列.例如"user.csv"的内容是:1,2,3,4,5,6,7,80,0,1,1,3,3,32,2,3,3,4,4,4,4,4...