回首忆惘然
12345678910111213s='1234abcd'-- 拆分成{"1","2","3","4","a","b","c","d"}k=strlen(s)list1={}for i=1,k do list1[i]=strsub(s,i,i)endfor i=1,k do print(list1[i])end 注:lua4脚本若是lua5,strlen改为string.strlen,strsub改为string.strsub