Python的学习

    xiaoxiao2025-07-15  7

     print 用于打印输出

      import 用于模块

      计算阶乘的程序

      import math

    ​  x=4

      print(math.factorial(x))

    计算平方根

    ​ import math

    ​  x=4

      print(math.sqrt(x))

    一个数的0.5次方等于它的算术平方根。(目前理解)

    2**0.5=根号2​

    转载请注明原文地址: https://ju.6miu.com/read-1300701.html
    最新回复(0)