日期:2014-05-17 浏览次数:20939 次
int counter = 0; for (int i = 1; i <= 9999; i++) { if (i.ToString().Contains('1')) counter++; } Response.Write(counter);