How can I avoid python converting big numbers to scientific notation?

前端 未结 2 1386
轮回少年
轮回少年 2021-01-20 03:56

I have data structured as follows:

[\'1404407396000\',
 \'484745869385011200\',
 \'0\',
 \'1922149633\',
 \"The nurse from the university said I couldn\'t go         


        
相关标签:
2条回答
  • 2021-01-20 04:54

    By using the format specification mini language described here:

    https://docs.python.org/2/library/string.html

    Search for: 7.1.3.1. Format Specification Mini-Language

    0 讨论(0)
  • 2021-01-20 05:00

    Use string formatting.

    writer.writerows("%f" % data)
    

    There are various formatting options you can check out here.

    0 讨论(0)
提交回复
热议问题