Python 错误:At least 5 arguments expected but 1 found - 解决方法
"At least 5 arguments expected but 1 found."\n'C:\Users\СÁÖ\AppData\Local\Temp\coverage6args'\nExpected arguments are:\n1) data file to save coverage result\n2) a flag to enable tracking per test coverage\n3) a flag to calculate coverage for unloaded classes\n4) a flag to use data file as initial coverage, also use it if several parallel processes are to write into one file\n5) a flag to run coverage in sampling mode or in tracing mode otherwise\n\n这个问题是由于在运行某个程序时,期望传入至少5个参数,但实际只传入了1个参数。根据给出的提示,你需要传入以下5个参数:\n\n1) 数据文件保存覆盖率结果\n2) 一个标志来启用每个测试的覆盖率跟踪\n3) 一个标志来计算未加载类的覆盖率\n4) 一个标志来使用数据文件作为初始覆盖率,如果有多个并行进程要写入同一个文件,则也使用它\n5) 一个标志来在采样模式下运行覆盖率,否则在跟踪模式下运行\n\n要解决这个问题,你需要确保在运行程序时传入这5个参数,并提供相应的值。
原文地址: https://www.cveoy.top/t/topic/psZ1 著作权归作者所有。请勿转载和采集!