vmprof: 配置示例.ini 文件: configparser.MissingSectionHeaderE

2024-05-03 16:43:46 发布

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

我尝试按照描述here创建一个config.ini文件,内容如下:

web-url = vmprof.com
web-auth = ffb7d4bee2d6436bbe97e4d191bf7d23f85dfeb2
period = 0.1

当我运行这个(通过python3 -m vmprof --config config.ini main.py)时,我得到一个错误:

configparser.MissingSectionHeaderError: File contains no section headers.

我想我应该添加一些节头(比如[header]?)。但是什么标题?你知道吗


Tags: 文件pycomauthwebconfigurl内容