The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
labulaka521

有支持 execl xls 格式的库吗,目前只找到了 https://github.com/extrame/xls 但是只有读取的功能,没有写入数据的功能

  •  
  •   labulaka521 ·
    labulakalia · Jun 19, 2021 · 3879 views
    This topic created in 1968 days ago, the information mentioned may be changed or developed.
    13 replies  •  2021-06-21 12:04:52 +08:00
    gainsurier
    gainsurier
    Jun 19, 2021❤️1
    1
    C++的话可以用 qtxlsx 和 xlsxio
    jworg
    jworg
    Jun 19, 2021❤️1
    2
    这都哪一年了,用 xlsx 格式,然后 https://github.com/360EntSecGroup-Skylar/excelize 来读写。xls 似乎是私有的,然后开源方面只有读没有写,python 那边也是一样
    jworg
    jworg
    Jun 19, 2021❤️1
    3
    @jworg 好吧,我记错了,python 那边有读写 xls 的库,xls 和 xlsx 只是完全不同的协议文档,导致部分库只支持其中一个
    loading
    loading
    Jun 19, 2021❤️1
    4
    用过 github.com/tealeg/xlsx 还行。

    基本需要用到 xlsx 格式,因为 xls 是私有格式,兼容不好。
    ugvfpdcuwfnh
    ugvfpdcuwfnh
    Jun 19, 2021❤️1
    5
    https://github.com/tfussell/xlnt

    这个是我实际在用的,非常方便。
    ZhangZisu
    ZhangZisu
    Jun 19, 2021 via Android❤️1
    6
    ZhangZisu
    ZhangZisu
    Jun 19, 2021 via Android❤️1
    7
    @ZhangZisu 好吧没看到是 go
    lm902
    lm902
    Jun 20, 2021❤️1
    8
    装好 Excel 以后可以调用 Excel 的 COM 组件
    labulaka521
    labulaka521
    OP
    Jun 20, 2021 via iPhone
    9
    谢谢各位哈
    HankLu
    HankLu
    Jun 20, 2021
    10
    这种还是交给 python 吧
    horizonl
    horizonl
    Jun 21, 2021
    11
    openpyxl ? python 的库,之前用过一小会
    horizonl
    horizonl
    Jun 21, 2021
    12
    @horizonl 看了前面的回复,发现自己用的时候没处理过 xls 格式的,好像是不支持 xls 的。抱歉提供错误信息了
    labulaka521
    labulaka521
    OP
    Jun 21, 2021
    13
    @jworg 支付宝商家多人转账那里只支持 xls
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   728 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 17:36 · PVG 01:36 · LAX 09:36 · JFK 12:36
    ♥ Do have faith in what you're doing.