class FileTotal
{
private static FileStream fs;
private static StreamWriter sw;
static void Main(string[] args)
{
string path = @"D:\Total";
if (Directory.Exists(path) == false)
{
Console.WriteLine(path);
Console.ReadKey();
}
else
{
fs = new FileStream(@"D:\result.txt", FileMode.Create);
sw = new StreamWriter(fs);
sw.WriteLine("Result:");
sw.WriteLine(path);
listDirectory(path);
sw.Flush();
sw.Close();
fs.Close();
Console.WriteLine("Continue!");
Console.ReadKey();
}
}
private static void listDirectory(string path)
{
DirectoryInfo folder = new DirectoryInfo(path);
//遍历文件
foreach (FileInfo nextFile in folder.GetFiles())
{
if (nextFile.Name.Contains(".vbproj") == true ||
nextFile.Name.Contains("AssemblyInfo.vb") == true)
{
continue;
}
if (nextFile.Name.Contains(".vb") == true ||
nextFile.Name.Contains(".xml") == true ||
nextFile.Name.Contains(".resx") ==
统计代码
最新推荐文章于 2024-08-31 15:50:00 发布
本文详细介绍了统计代码的实现过程,包括数据清洗、数据分析和结果可视化。通过实例讲解了如何运用Python的pandas库进行数据预处理,使用matplotlib和seaborn库创建直观的图表,以及如何解读统计指标,帮助读者深入理解统计方法在实际项目中的应用。
摘要由CSDN通过智能技术生成