递归算法,压缩

public static int Sunfa(int i)
{
int result = 0;
if (i > 0)
{
if (1 >= i || i <= 2)
{
result = 1;
}
if (i > 2)
{
result = Sunfa(i - 1) + Sunfa(i - 2);
}
}
else
{
result = 0;
}
return result;
}


//压缩
ZipFile.CreateFromDirectory(@"D:新建文件夹电脑壁纸", @"D:新建文件夹电脑壁纸2.zip");

ZipFile.ExtractToDirectory(@"D:测试文件压缩111.zip", @"d:High111"); //解压

生活太矮!!在一条没有尽头的路上,我们低头奔跑···
原文地址:https://www.cnblogs.com/shenghuotaiai/p/7834175.html