控制台动态输出!~怎么弄??

来源:百度知道 编辑:UC知道 时间:2024/07/04 19:28:47
Console.WriteLine(" 新增数据: " + dlList.Count + " 条数据");
让 dlList.Count自增长

控制台只输出一行数据,但是 dlList.Count是自增的效果

C#实现
dlList.Count 就是个变量!!象个计数器一样!!象个秒表自动加数!!不明白???
我把dlList.Count换成 int n 这样理解了??

for (int n = 0; i < 10; i++)
{
Console.Clear();
Console.WriteLine(" 新增数据: " + n + " 条数据");
System.Threading.Thread.Sleep(1000);
}

每次显示完dlList.Count
然后list.add(随便一个东西),不就多一条了

你发代码啊!让人给你添加修改!