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-10-21 21:26 , Processed in 0.014114 second(s), 18 queries .