单项选择题

下列选项中,输出结果保留两位小数的是()。

A.{:.2}’.format(points/total)
B.{.2}’.format(points/total)
C.{.2f}’.format(points/total)
D.{2f}’.format(points/total)

微信扫码免费搜题