// 导入EXCEL时经常出现类似情况 // 将前四行的内容都复制到第一行 use x1,clear local kk=0 foreach var of varlist _all{ local kk=`kk'+1 local cc="" forvalues i=1/4{ local cc="`cc'"+`var'[`i'] } replace `var'="`cc'" in 1 } drop in 2/4
标签:空行,删除,cc,修改,kk,var,local From: https://www.cnblogs.com/xkdn/p/17449896.html