912.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Excel = Microsoft.Office.Interop.Excel;
namespace ConsoleApp9
{
internal class Program
{
static void Main(string[] args)
{
// 创建 Excel 应用程序实例
Excel.Application excelApp = new Excel.Application();
excelApp.Visible = true;
try
{
// 打开包含宏的 Excel 文件
Excel.Workbook workbook = excelApp.Workbooks.Open(@"C:\Users\Administrator\Documents\test.xlsm");
try
{
// 运行指定的宏
excelApp.Run("'test.xlsm'!test1","test");
}
catch (Exception ex)
{
Console.WriteLine("Error running macro: " + ex.Message);
}
finally
{
Console.ReadKey();
// 保存工作簿并关闭
workbook.Save();
workbook.Close();
}
}
catch (Exception ex)
{
Console.WriteLine("Error opening workbook: " + ex.Message);
}
finally
{
// 退出 Excel 应用程序
excelApp.Quit();
// 释放 COM 对象
System.Runtime.InteropServices.Marshal.ReleaseComObject(excelApp);
}
Console.ReadKey();
}
}
}
911. ffmpge 大有大的用处,我刚刚用了下 FFmpeg Media Encoder 这款小安卓软件,264,15帧2m码率,六分钟视频转好后手机发热特别严重,从未体验过的发热温度
904.
903. 安装的时候使用
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list
pkg install --no-install-recommends ffmpeg
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list
pkg install --no-install-recommends ffmpeg
902. pkg install ffmpeg 太大了,有1gb多,使用 pkg install --no-install-recommends ffmpeg 就小很多,只有526mb,要用的功能没受影响,还挺合适。