def functionname( parameters ):
"函数_文档字符串"
function_suite
return [expression]
--[[ function returning the max between two numbers --]]
function max(num1, num2)
if (num1 > num2) then
result = num1;
else
result = num2;
end
return result;
end
未完,待续……
原文:http://www.cnblogs.com/swje/p/5416538.html