文書の過去の版を表示しています。
フォーマット済み文字列リテラル(f-strings)
str_val = 'abc' f'{str_val:>6}' ' abc' pi = 3.14159265358979 f'pi: {pi:.2f}' 'pi: 3.14' f'pi: {pi:6.3f}' 'pi: 3.142'
python:f-strings
文書の過去の版を表示しています。
str_val = 'abc' f'{str_val:>6}' ' abc' pi = 3.14159265358979 f'pi: {pi:.2f}' 'pi: 3.14' f'pi: {pi:6.3f}' 'pi: 3.142'