Lua两个table中B中所有元素大于等于A中每个元素的个数 A={5,10,15,20,25,30,35,40,45,50} B={5,10,15,20} local ret=0 for i=1,#A do res=true; for j=1,#B do if (B[j]<A[i]) then res=false break end end if (res) then ret=ret+1 print("s") end end print(ret)