重写modu中的常量

2024-04-27 15:53:56 发布

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

我使用的是Python Pygatt模块(https://github.com/ampledata/pygatt/tree/master/pygatt)。在

在类.py文件导入pygatt.常数它设置了一些常量。我不知道如何重写文件中的这些常量食品我试过:

import pygatt

pygat.classes.pygatt.constants.DEFAULT_CONNECT_TIMEOUT_S = 8

但它不起作用。我很困惑,这可能是我在做的蠢事。谢谢你的帮助!在


Tags: 模块文件pyhttpsimportgithubmastercom