#! /bin/sh echo $0 echo $1 echo [email protected] echo $# andy$./test.sh 1 2 3 4 ./test.sh 1 1 2 3 4 4
print(select(‘#‘, ...)) print(select(2, ...)) local arg = select(2, ...) print("arg=" .. arg) andy$ lua test.lua 1 2 3 3 2 3 arg=2
时间: 2024-10-03 22:37:34