我之前是用的这个类库Spire.XLS来弄的,看了教程里面的方法来实现的,你可以参考下https://www.e-iceblue.cn/spirexls/set-number-format-in-excel.html,