f表記がPython3.6から使える
item1 = 'apple' item2 = 'bananas' item3 = 'grapes' print('At the grocery store, I bought some {0} and {1} and {2}.'.format(item1,item2,item3)) print('At the grocery store, I bought some {0} and {1} and {2}.'.format('apple',2,3))#intも入れられる。 print(f'At the grocery store, I bought some {item1} and {item2} and {item3}.')#3.6から f表記
f表記、3.6から