• 2021-04-14 问题

    【单选题】若 x 为 12.872,y 为 3.146;则输出为 “x=12.87, y=3.15”的是() A. .print( "x={2f},y={2f}".format( x, y) ) B. print( "x={.2f},y={.2f}".format( x, y ) ) C. print( "x={:2f},y={:2f}".format( x, y ) ) D. print( "x={:.2f},y={:.2f}".format( x, y ) )

    【单选题】若 x 为 12.872,y 为 3.146;则输出为 “x=12.87, y=3.15”的是() A. .print( "x={2f},y={2f}".format( x, y) ) B. print( "x={.2f},y={.2f}".format( x, y ) ) C. print( "x={:2f},y={:2f}".format( x, y ) ) D. print( "x={:.2f},y={:.2f}".format( x, y ) )

  • 1