n
は、type
フラグの文字列書式設定で正確に何が行われるのか理解しようとしています。文字列書式設定のPython
PEP 3101は(可能な整数型の項で)言う:
This is a large number with formatting applied: 1384309238430
です:私は出力を得る
print "This is a large number with formatting applied: {0:n}".format(1384309238430)
:
'n' - Number. This is the same as 'd', except that it uses the
current locale setting to insert the appropriate
number separator characters.
は、私は次のコードを試してみました、番号区切り文字はありません。私のロケール設定を見つけるにはどうすればいいですか?どのように私は区切り文字を取得するのですか(私は、区切り文字で、それは千単位の区切り記号のようなものを参照していると思っています)。