Console.ReadLineelse |
您所在的位置:网站首页 › Python的readline › Console.ReadLineelse |
1> Nico..: 您正在ReadLine多次调用,因此您从stdin中多次读取.请尝试以下方法: var line = Console.ReadLine(); if (line == "ADD") { //Add } else if (line == "LIST") { //DisplayList } else if (line == "SORT") { //Sort } else { //DisplayErrorMsg } |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |