ffid = fopen('a.txt','r'); for i = 1:97 tline = fgetl(ffid); %将每一行放到tline里 end fclose(ffid); 看完记得点赞,(づ ̄3 ̄)づ╭❤~