python:language_memo

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
python:language_memo [2019/06/10 18:48] – [書式編集] ともやんpython:language_memo [2019/08/19 07:01] (現在) ともやん
行 31: 行 31:
  
 flt_val = 1234.5678 flt_val = 1234.5678
-f'float value: {flt_val:>10.2f}' +f'float value: {flt_val:>10,.2f}' 
-'float value:    1234.57'+'float value:   1,234.57'
  
 'int: {0:d}; hex: {0:#x}; oct: {0:#o}; bin: {0:#b}'.format(65536) 'int: {0:d}; hex: {0:#x}; oct: {0:#o}; bin: {0:#b}'.format(65536)
  • python/language_memo.txt
  • 最終更新: 2019/08/19 07:01
  • by ともやん