• <tfoot id='L6e0v'></tfoot>

    <small id='L6e0v'></small><noframes id='L6e0v'>

    <legend id='L6e0v'><style id='L6e0v'><dir id='L6e0v'><q id='L6e0v'></q></dir></style></legend>

      <i id='L6e0v'><tr id='L6e0v'><dt id='L6e0v'><q id='L6e0v'><span id='L6e0v'><b id='L6e0v'><form id='L6e0v'><ins id='L6e0v'></ins><ul id='L6e0v'></ul><sub id='L6e0v'></sub></form><legend id='L6e0v'></legend><bdo id='L6e0v'><pre id='L6e0v'><center id='L6e0v'></center></pre></bdo></b><th id='L6e0v'></th></span></q></dt></tr></i><div id='L6e0v'><tfoot id='L6e0v'></tfoot><dl id='L6e0v'><fieldset id='L6e0v'></fieldset></dl></div>
        • <bdo id='L6e0v'></bdo><ul id='L6e0v'></ul>

      1. 如何用前导零写入csv?

        时间:2023-06-28

            <i id='aM1sn'><tr id='aM1sn'><dt id='aM1sn'><q id='aM1sn'><span id='aM1sn'><b id='aM1sn'><form id='aM1sn'><ins id='aM1sn'></ins><ul id='aM1sn'></ul><sub id='aM1sn'></sub></form><legend id='aM1sn'></legend><bdo id='aM1sn'><pre id='aM1sn'><center id='aM1sn'></center></pre></bdo></b><th id='aM1sn'></th></span></q></dt></tr></i><div id='aM1sn'><tfoot id='aM1sn'></tfoot><dl id='aM1sn'><fieldset id='aM1sn'></fieldset></dl></div>
              <bdo id='aM1sn'></bdo><ul id='aM1sn'></ul>
              <legend id='aM1sn'><style id='aM1sn'><dir id='aM1sn'><q id='aM1sn'></q></dir></style></legend>

                    <tbody id='aM1sn'></tbody>

                  <small id='aM1sn'></small><noframes id='aM1sn'>

                  <tfoot id='aM1sn'></tfoot>
                  本文介绍了如何用前导零写入csv?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我希望将一些数据写入 CSV 文件.我输入信息的一列是带前导零的整数形式,例如:0000000013.

                  I wish to write to a CSV file some data. One of the column that I input the information is in the form of an integer with leading zeros, example: 0000000013.

                  由于某种原因,excel 将其转换"为 13,我必须使用 10 位数字 (0000000013).谁能告诉如何规避这个问题?

                  For some reason, excel 'converts' it to 13, and I must have it with 10 digits (0000000013). Can anyone tell how this can be circumvented?

                  String value = "0000000013"; //I tried String.format("%8d", 13) doesn't work
                  printWriter.println(value);
                  

                  谢谢!!!

                  推荐答案

                  在行首添加单引号 '.这会通知 Excel 不要将该值视为数字.

                  Add a single quote, ', at the start of the line. This informs Excel to not treat the value as a number.

                  这篇关于如何用前导零写入csv?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:向 Dialog 添加多项选择并使其正常运行 下一篇:获取 JTable 以打印表格格式

                  相关文章

                  1. <tfoot id='KIe0X'></tfoot>
                    <i id='KIe0X'><tr id='KIe0X'><dt id='KIe0X'><q id='KIe0X'><span id='KIe0X'><b id='KIe0X'><form id='KIe0X'><ins id='KIe0X'></ins><ul id='KIe0X'></ul><sub id='KIe0X'></sub></form><legend id='KIe0X'></legend><bdo id='KIe0X'><pre id='KIe0X'><center id='KIe0X'></center></pre></bdo></b><th id='KIe0X'></th></span></q></dt></tr></i><div id='KIe0X'><tfoot id='KIe0X'></tfoot><dl id='KIe0X'><fieldset id='KIe0X'></fieldset></dl></div>

                      <legend id='KIe0X'><style id='KIe0X'><dir id='KIe0X'><q id='KIe0X'></q></dir></style></legend>
                        <bdo id='KIe0X'></bdo><ul id='KIe0X'></ul>

                    1. <small id='KIe0X'></small><noframes id='KIe0X'>