function day_step(old_day,step) local y,m,d if(amp;quot;0amp;quot; ~= string.sub(old_day,6,6)) then m=string.sub(old_day,6,7) else m=string.sub(old_day,7,7) end ...……
function add( a, b )
return a + b
end
-- print( add( 10, 20 ) )
function loopT( T )
for i, v in ipairs( T ) do
print( i, v )
end
end
-- loopT{ 10, 20, 30,……