导入 Python 库
您可以在 Python 模板中使用 Python 库。Deployment Manager 在安全环境中上传并运行模板中的 Python 代码。
您可以使用下面列出的 Deployment Manager 支持的库。要使用其他 Python 库,请在模板中导入完整的库源代码。
受支持的库
Deployment Manager 支持您可以在模板中使用的特定 Python 库。这些库包括:
如果要导入未明确支持的库,请使用文件名导入该库。如果要导入自己的辅助方法,此办法尤其有用。系统调用限制同样适用于自定义库。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-02-18 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"很难理解"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"信息或示例代码不正确"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"没有我需要的信息/示例"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]