從python 2.6開始,可以使用format對string格式化. 用法1:使用{} ... 用法3:使用變數名. Plain text ... print 'DEC: {:d}'.format(num5).
確定! 回上一頁