http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html 例如,这是您解析 2 个字符串参数的方式:commons-cli import org.apache.commons.cli.*; public class Main { public static void main(String[] args) throws Exception { Options options = new Options(); Option input = new Option(...