7.1.1. 旧式的字符串格式化操作符 >>> import math
>>> print('The value of PI is approximately %5.3f.' % math.pi)
The value of PI is approximately 3.142.
|
Archiver|手机版|笨鸟自学网 ( 粤ICP备20019910号 )
GMT+8, 2025-12-10 05:55 , Processed in 0.017471 second(s), 18 queries .