假定number=4,下面哪个语句不会出错?
7 查阅
假定number=4,下面哪个语句不会出错?
A.print(format(number,"2d"),format(number**1.5,"4d"))
B.print(format(number,"2d"),format(number**1.5,"4.2d"))
C.print(format(number,"2d"),format(number**1.5,"4.2f"))
D.print(format(number,"2f"),format(number**1.5,"4.2d"))
参考答案: