hehezhang
V2EX  ›  问与答

关于 Python xlrd 库使用的一个问题

  •  
  •   hehezhang · Apr 19, 2021 via Android · 1552 views
    This topic created in 1923 days ago, the information mentioned may be changed or developed.

    刚刚我是用 xlrd 读 excel,然后我遇到了一个很神奇的问题,有一列数据全都是整数,xlrd 读出来是浮点数,比如表格里面是 20,xlrd 读出来是 20.0,可是有一列既有整数又有小数,xlrd 又能正常读取了,比如 20,30.01 ,xlrd 读出来就是正常的,有没有解决办法能让读出来的数据正确啊,求助

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1456 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:44 · PVG 00:44 · LAX 09:44 · JFK 12:44
    ♥ Do have faith in what you're doing.