如何使用pythonapi?

2024-07-04 13:37:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个特定的API:https://github.com/leandrotoledo/python-correios 如何在代码中使用它(由于它是一个githubapi,因此不需要OAuth或类似的东西,只需直接使用)


Tags: 代码httpsgithubcomapioauthcorreiosgithubapi
1条回答
网友
1楼 · 发布于 2024-07-04 13:37:24

如果您想在所有类中直接访问它,可以进行pip安装。 只需克隆这个,然后继续pip安装

git clone https://github.com/leandrotoledo/python-correios.git
cd python-correios
pip install .

现在可以在python libs/类中使用它了。像这样:

from correios import Correios

相关问题 更多 >

    热门问题