% 演算子。 >>> "<%.*s>" % (3, "hoge") '<hog>' >>> "<%*d>" % (6, 123) '< 123>' >>> "<%2$d %1$d>" % (123, 456) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: unsupported format character '$' (0x24) at index 3 >>> "<%s><%d><%f>" % ("hoge",123,3.14) '<hoge><123><3.140000>' >>> "<%s><%d><%f>" % (123,3.14,"hoge") Traceback (most recent call last): File "<stdin>", line 1,