高等继续教育 / Python编程
正确率:100%
下列可以正确输出语句"His height is 1.8m"的语句是( )。
A、print("His height is %d m"%1.8)
B、print("His height is %f m"%1.8)
C、print("His height is %.1f m"%1.83)
D、print("His height is %s m"%1.83)
A、print("His height is %d m"%1.8)
B、print("His height is %f m"%1.8)
C、print("His height is %.1f m"%1.83)
D、print("His height is %s m"%1.83)
参考答案:
佳题速递: