2017-02-26 <Python> 文字列と数値の連結 Python 文字列などを連結するときは str.format() を使用する >>> num = 123 >>> num 123 >>> print("{0}{1}".format("hello", num)) hello123