<legend id='7yTeB'><style id='7yTeB'><dir id='7yTeB'><q id='7yTeB'></q></dir></style></legend>

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

        <tfoot id='7yTeB'></tfoot>

        • <bdo id='7yTeB'></bdo><ul id='7yTeB'></ul>
      1. <small id='7yTeB'></small><noframes id='7yTeB'>

        如何用前导零写入csv?

        时间:2023-09-29
              <tbody id='VBjFq'></tbody>

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

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

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

              1. <tfoot id='VBjFq'></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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何转换字符串“2011-11-29 12:34:25"迄今为止在 下一篇:获取 JTable 以打印表格格式

                  相关文章

                  最新文章

                    <bdo id='S7FWq'></bdo><ul id='S7FWq'></ul>

                    1. <legend id='S7FWq'><style id='S7FWq'><dir id='S7FWq'><q id='S7FWq'></q></dir></style></legend>

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

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