下列哪些语句是正确的Math对象方法
A: Math.random()
B: Math.rnd()
C: Math.max(数值1,数值2)
D: Math.floor(数值)
A: Math.random()
B: Math.rnd()
C: Math.max(数值1,数值2)
D: Math.floor(数值)
A,C,D
举一反三
- 以下哪些函数是Math对象的?( ) A: random() B: max(3,10) C: round(1.5) D: rnd(7.25)
- 下列哪个不是Math对象的方法 A: sort() B: floor() C: random() D: abs()
- Math对象的()方法是对数值x进行上舍入。
- 以下哪个不是正确的引入math库或其函数的语句() A: import math B: from math import * C: from math import math D: import math as ma
- 引用math模块中sqrt函数的导入语句,下列错误的语句是:( ) A: import math B: from math import sqrt C: from sqrt import math D: from math import *
内容
- 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 *