Уведомления

Группа в Telegram: @pythonsu

#1 Окт. 30, 2010 05:16:32

py.user.next
От:
Зарегистрирован: 2010-04-29
Сообщения: 9730
Репутация: +  843  -
Профиль   Отправить e-mail  

генерация чисел типа double с 10 знаками после запятой

knkd
o7412369815963
думаю достаточно только \n, т.к. читать все равно питоном
В файл всё равно запишется “\n\r”.
help(open)
    newline controls how universal newlines works (it only applies to text
mode). It can be None, '', '\n', '\r', and '\r\n'. It works as
follows:

* On input, if newline is None, universal newlines mode is
enabled. Lines in the input can end in '\n', '\r', or '\r\n', and
these are translated into '\n' before being returned to the
caller. If it is '', universal newline mode is enabled, but line
endings are returned to the caller untranslated. If it has any of
the other legal values, input lines are only terminated by the given
string, and the line ending is returned to the caller untranslated.

* On output, if newline is None, any '\n' characters written are
translated to the system default line separator, os.linesep. If
newline is '', no translation takes place. If newline is any of the
other legal values, any '\n' characters written are translated to
the given string.
legal values - это

It can be None, '', '\n', '\r', and '\r\n'.



Отредактировано (Окт. 30, 2010 05:21:00)

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version