控制台程序console输入参数 获取参数
生活随笔
收集整理的這篇文章主要介紹了
控制台程序console输入参数 获取参数
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?class Program
??? {
??????? static void Main(string[] args)
??????? {
?????????? ?
????????
??????????? if (args.Length > 0)
??????????????? Console.WriteLine(args[args.Length - 1]); //cd到控制臺編譯的debug文件夾 輸入 Redis.exe 111 aaa ddd 打印出:ddd
??????????? Console.Read();
??????? }
??? }
轉載于:https://www.cnblogs.com/bawang/p/8872573.html
總結
以上是生活随笔為你收集整理的控制台程序console输入参数 获取参数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Spring MVC上传文件原理和res
- 下一篇: Eclipse代码自动补全