About 19,500 results
Open links in new tab
  1. Python sqrt () 函数 | 菜鸟教程

    语法 以下是 sqrt () 方法的语法: import math math.sqrt( x ) 注意: sqrt ()是不能直接访问的,需要导入 math 模块,通过静态对象调用该方法。

  2. Python math.sqrt () Method - W3Schools

    Definition and Usage The math.sqrt() method returns the square root of a number. Note: The number must be greater than or equal to 0.

  3. Python 中 `math.sqrt ()` 的全面解析 — geek-blogs.com

    Sep 21, 2025 · `math` 模块是 Python 标准库中用于执行数学相关操作的重要模块,其中的 `sqrt ()` 函数专门用于计算一个数的平方根。 本文将围绕 `math.sqrt ()` 展开,详细介绍其基础概念、使用方法、 …

  4. Pythonsqrt () 函数的使用详解 - 极客教程

    Python 中 sqrt () 函数的使用详解 在 Python 中,我们常常需要对数值进行各种数学运算。 其中,求平方根是一个常见的需求。 Python 提供了 math 模块,其中包括了 sqrt () 函数,可以用来计算数的平方 …

  5. The Python Square Root Function

    In this quick and practical tutorial, you'll learn what a square root is and how to calculate one in Python. You'll even see how you can use the Python square root function to solve a real-world problem.

  6. Python math.sqrt () 方法 - w3school 在线教程

    定义和用法 math.sqrt() 方法返回数的平方根。 注意: 该数字必须大于或等于 0。 实例 求不同数字的平方根: # 导入 math 库 import math # 返回不同数的平方根: print (math. sqrt (9)) print (math. sqrt …

  7. Python math sqrt ()用法及代码示例 - 纯净天空

    Python math sqrt ()用法及代码示例 sqrt () function是Python编程语言中的内置函数,可返回任何数字的平方根。 用法: math. sqrt (x) 参数: x is any number such that x>=0 返回: It returns the square …

  8. Python math.sqrt () function | Find Square Root in Python

    Feb 14, 2025 · It is an inbuilt function in the Python programming language, provided by the math module. In this article, we will learn about how to find the square root using this function.

  9. Python中使用sqrt ()函数计算平方根的详细指南 - 云原生实践

    Oct 31, 2024 · 引言 在Python编程中,计算一个数的平方根是一个常见且重要的操作。 无论是数据分析、科学计算还是日常编程任务,平方根的计算都扮演着不可或缺的角色。 Python提供了多种方式来计 …

  10. Python math.sqrt () - Square Root

    Discover how to use the math.sqrt () function in Python to calculate the square root of a number. This tutorial covers the syntax, parameters, and provides practical examples, including how to handle …