Python 提供了%对各种类型的数据进行格式化输出,例如如下代码: price = 108print (the books price is %s % price) 上面程序中 ... %g, 智能选择使用%f 或%e 格式.
確定! 回上一頁