python 保留pai(3.14159~)值小数点后四位

import math

print(format(math.pi, '.4f'))

math.pi 为pai值
posted @ 2022-08-12 16:09  .Curry  阅读(150)  评论(0)    收藏  举报