首页试题详情
难度: 使用次数:138更新时间:2026/03/16
1.
使用import math导入math模块后,要访问其中的sqrt函数,正确的语法是?
A.math.sqrt()
B.sqrt()
C.import sqrt
D.from math import sqrt
题型:选择题 知识点:第四章 函数与模块
【答案】
A
【解析】
使用import math导入后,需要使用math.sqrt()来调用sqrt函数。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

类题推荐:

未分类