Swift 脚本(运行时带参数)时间:2021-10-01 12:16:42 #!/usr/bin/env xcrun swift import Foundation let args = Process.arguments print("Arg:\(args)") chmod +x x.sh 添加执行权限