单选题:以下哪条语句将输出显示20%?
以下哪条语句将输出显示20%?
@[B](2)
A. print(format(20, '.0%'))
B. print(format(0.2, '.0%'))
C. print(format(0.2 * 100, '.0%'))
D. print(format(0.2, '%'))
A.print(format(20, '.0%'))
B.print(format(0.2, '.0%'))
C.print(format(0.2 * 100, '.0%'))
D.print(format(0.2, '%'))
答案:B
@[B](2)
A. print(format(20, '.0%'))
B. print(format(0.2, '.0%'))
C. print(format(0.2 * 100, '.0%'))
D. print(format(0.2, '%'))
A.print(format(20, '.0%'))
B.print(format(0.2, '.0%'))
C.print(format(0.2 * 100, '.0%'))
D.print(format(0.2, '%'))
答案:B