如果只需要math模块中的sin( )函数,建议使用from math import sin来导入,而不要使用import math导入整个模块。
第1题:
如果只需要math模块中的sin()函数,建议使用frommathimportsin来导入,而不要使用importmath导入整个模块。
此题为判断题(对,错)。
第2题:
A.import A.B.c
B.import A.B
C.from A import B
D.from A.B import c
第3题:
A.Math.round()
B.Math.random()
C.Math.ceil()
D.Math.floor()
第4题:
执行语句from math import sin之后,可以直接使用sin()函数,例如sin(3)。
第5题:
下列APl不属于java.lang.Math类的是( )。
A.random()
B.abs()
C.drawLine()
D.sin()
第6题:
下列API不属于java. lang. Math类的是( )。
A.random ()
B.abs()
C.drawLine ()
D.sin()
第7题:
A.信号源库
B.线性函数的模块
C.显示输出的模块
D.数学函数的模块
第8题:
A.Java.lang.*
B.Java.Math.*
C.Java.util.Math.*;
D.以上皆非
第9题:
下列API不属于java.lang.Math的是( )。
A.random()
B.abs()
C.drawLine()
D.sin()
第10题:
表达式eval(’’’import(’math’).sqrt(9)’’’)的值为()。