文字列から数値へ変換する。

C言語

sprintf()

Python

str.format()

>>> "The sum of 1 + 2 is {0}".format(1+2)
'The sum of 1 + 2 is 3'

Front page   Diff Backup Reload   List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: Thu, 28 Jul 2011 16:04:25 JST (2126d)