我已经导入了Shippopython包,我正在尝试让他们的示例正常工作,但我遇到了以下错误消息(见下文)。我在最新的API版本上运行Python 3.7.2。File "C:\Python\lib\site-packages\shippo\__init__.py", line 8, in <module> File "C:\Pytho
我最近注意到在python的不同包中有两个不同的信号量实现,一个在threading包中,另一个在asyncio包中。我很好奇,这两种实现有什么区别?如果在异步函数中,我尝试使用threading包中的信号量,这会导致任何潜在的问题吗?通过查看python官方文档,它编写了
asyncio primitives are not thread-safe, therefore they should not be used for OS