【问题标题】:Why can I import linspace from scipy but in the doc it is from numpy?为什么我可以从 scipy 导入 linspace,但在文档中它来自 numpy?
【发布时间】:2017-10-28 20:08:28
【问题描述】:

我尝试使用doc 自己理解它,但我不明白为什么,从模块scipy 中,我可以导入linspace,这是模块numpy 的一个功能。他们都运作良好。 另外,我在scipy 文档中找不到它。

【问题讨论】:

    标签: python-3.x numpy scipy


    【解决方案1】:

    Scipy imports all Numpy functions 在其命名空间中。

    【讨论】:

      【解决方案2】:

      当然,要知道在文档中哪里可以找到它并不容易,但它在 first page of the tutorial 中,这也是文档的第一部分。

      此外,还有很多来自 numpy 的基本数组函数 在 scipy 包的顶层。

      【讨论】:

        猜你喜欢
        • 2017-02-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-10-11
        • 2012-08-30
        • 2021-07-21
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多