有没有办法让Excel识别小数位置?

发布于 2025-01-21 03:08:35 字数 267 浏览 3 评论 0原文

我已经编写了一个使用.to_csv函数的CSV文件。这效果很好,但是当我在Excel中打开CSV文件时,Excel无法识别小数位置。

例如:
一个应该为100611.52421 ..的数字显示为> 1006115242123330。我知道编写文件没有什么问题,因为当我在Visual Studio代码中显示CSV文件时,我可以看到点。
有人知道我如何正确打开CSV文件吗?

提前致谢

I've written a csv file with the .to_csv function. This worked fine but when I open the csv file in excel, excel doesn't recognise the decimal placement.

For example:
A number that was supposed to be 100611.52421.. is displayed in Excel as 1006115242123330. I know nothing went wrong with writing the file because when I display the csv file in visual studio code I can see the dot.
Does anyone know how I can properly open the csv file?

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紙鸢 2025-01-28 03:08:35

我认为您的CSV文件没有任何问题。我相信您的区域设置是错误的:该点不被认为是小数分离器。
为了解决此问题,请在配置设置中检查以下内容:

I don't think there's anything wrong with your CSV file. I believe your regional settings are wrong: the dot is not recognised as a decimal separator.
In order to fix this, check the following in your configuration settings:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文