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, 2026-2-16 06:32 , Processed in 0.016559 second(s), 19 queries .