• 2022-07-28 问题

    输入一个表示半径的浮点数,计算圆的面积的程序正确的有:[br][/br] (圆周率取使用math库中的pi值,结果保留2位小数) A: import math <br> radius = float(input()) area = math.pi * radius ** 2 print(round(area, 2)) B: import math <br> radius = float(input()) area = pi * radius ** 2 print(round(area, 2)) C: from math import pi <br> radius = float(input()) area = math.pi * radius ** 2 print(round(area, 2)) D: from math import pi <br> radius = float(input()) area = pi * radius ** 2 print(round(area, 2))

    输入一个表示半径的浮点数,计算圆的面积的程序正确的有:[br][/br] (圆周率取使用math库中的pi值,结果保留2位小数) A: import math <br> radius = float(input()) area = math.pi * radius ** 2 print(round(area, 2)) B: import math <br> radius = float(input()) area = pi * radius ** 2 print(round(area, 2)) C: from math import pi <br> radius = float(input()) area = math.pi * radius ** 2 print(round(area, 2)) D: from math import pi <br> radius = float(input()) area = pi * radius ** 2 print(round(area, 2))

  • 2022-05-29 问题

    执行import math 后,即可执行语句print sqrt(pi/2)

    执行import math 后,即可执行语句print sqrt(pi/2)

  • 2022-10-25 问题

    表达式eval('''______ ('math').sqrt(3**2+4**2)''')的值为______ 。(5.0)

    表达式eval('''______ ('math').sqrt(3**2+4**2)''')的值为______ 。(5.0)

  • 2022-10-26 问题

    以下哪个不是正确的引入math库或其函数的语句() A: import math B: from math import * C: from math import math D: import math as ma

    以下哪个不是正确的引入math库或其函数的语句() A: import math B: from math import * C: from math import math D: import math as ma

  • 2022-06-12 问题

    Mr. Yang ______. A: teaches math us B: teaches us to math C: teaches math to us D: us teaches math

    Mr. Yang ______. A: teaches math us B: teaches us to math C: teaches math to us D: us teaches math

  • 2022-05-30 问题

    执行了import math之后即可执行语句print (cos(pi/2))。( )

    执行了import math之后即可执行语句print (cos(pi/2))。( )

  • 2022-05-30 问题

    先用“from math import *”语句导入math模块,输出表达式sqrt(2)*sqrt(2)==2的值时,发现其值为False,所以该表达式的更好的写法是 。设比较的精度为10-5

    先用“from math import *”语句导入math模块,输出表达式sqrt(2)*sqrt(2)==2的值时,发现其值为False,所以该表达式的更好的写法是 。设比较的精度为10-5

  • 2022-05-27 问题

    I don’t think it advisable () A: your studying math B: you to study math C: for you to study math D: of you to study math

    I don’t think it advisable () A: your studying math B: you to study math C: for you to study math D: of you to study math

  • 2022-10-26 问题

    要显示模块math中的所有函数,使用的命令是: A: importmath B: dir(math) C: help(math) D: list(math)

    要显示模块math中的所有函数,使用的命令是: A: importmath B: dir(math) C: help(math) D: list(math)

  • 2022-05-29 问题

    引用math模块中sqrt函数的导入语句,下列错误的语句是:( ) A: import math B: from math import sqrt C: from sqrt import math D: from math import *

    引用math模块中sqrt函数的导入语句,下列错误的语句是:( ) A: import math B: from math import sqrt C: from sqrt import math D: from math import *

  • 1 2 3 4 5 6 7 8 9 10