• <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?

        how to write to csv with a leading zero?(如何用前导零写入csv?)

            <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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                  How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                  KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                  How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                  How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                  Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)

                  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>

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

                              <tbody id='KIe0X'></tbody>