1. Learn
  2. /
  3. Courses
  4. /
  5. Python 入门

Connected

Exercise

多种导入方式

在 Python 中有多种方式导入包和模块。根据导入方式的不同,您需要写出相应的 Python 代码。

假设您想使用 scipy 包中 linalg 子包的 函数 inv()。您希望可以像下面这样使用该函数:

my_inv([[1,2], [3,4]])

要让以上代码不报错,您需要使用哪一条 import 语句?

Instructions

50 XP

Possible answers