在计算机编程中,导入(import)的意思是将代码的一部分或整体引入当前代码文件中,以便在当前文件中使用这部分代码。

这个词来源于拉丁文的 "importare",意思是"带来"或"引入"。

下面是一些英文例句及其中文翻译:

We need to import the math module in order to use the sqrt function.
我们需要导入 math 模块才能使用 sqrt 函数。

You can import specific functions or classes from a module instead of importing the entire module.
你可以从模块中导入特定的函数或类,而不是导入整个模块。

The import statement is used to include code from other files or modules in your Python program.
import 语句用于在 Python 程序中包含其他文件或模块的代码。
扫码进群(如群满请谅解)
长按或截屏保存,再用微信扫一扫

最佳回答 2023-01-31