A、print(“{%.2f}”.format(x))
B、print(“%.2f”%x)
C、print(“{:.2f}”.format(x))
D、print(format(x,”.2f”))
喵查答案:print(“{%.2f}”.format(x))
A、print(“{%.2f}”.format(x))
B、print(“%.2f”%x)
C、print(“{:.2f}”.format(x))
D、print(format(x,”.2f”))
喵查答案:print(“{%.2f}”.format(x))