• 2022-05-30
    下列哪些语句是正确的Math对象方法
    A: Math.random()
    B: Math.rnd()
    C: Math.max(数值1,数值2)
    D: Math.floor(数值)
  • A,C,D

    内容

    • 0

      下面关于Math对象描述正确的是 A: Math对象需要先实例化才能使用 B: Math对象的ceil()方法向上取整 C: Math对象有5个方 D: Math对象是自定义的对象

    • 1

      调用Math类的静态方法max()时,用法正确的是 A: Math.max B: Math.max() C: max D: max()

    • 2

      下列哪个选项是导入标准库math中所有对象的正确操作( )。 A: from math import * B: from math import sin C: from math import all D: from math import fun

    • 3

      以下哪个不是Math对象的主要方法() A: random() B: floor() C: strike() D: pow()

    • 4

      下列语句错误的是_____。? import math|from math import sqrt|import sqrt|from math import *