我在python中编写一个包含许多常量变量的程序.我想创建一个文件,它将保存所有这些变量,如C中包含许多#define的.h文件.我尝试使用configparser但是我发现使用它并不容易.
你知道更好的方法吗?
python constants configuration-files python-3.x
configuration-files ×1
constants ×1
python ×1
python-3.x ×1