【发布时间】:2021-03-25 18:02:26
【问题描述】:
我有一个看起来像这样的 python 文件目录
documents/needTesting/
algorithmV1.py
algorithmV2.py
....
algorithmVn.py
它们都采用相同的参数并具有相似的输出。 有没有办法让我一次测试所有这些并将结果存储在一个文件中?
理想情况下,我希望结果看起来像这样。
V1 offset: 0.2% Runtime: 50ms
V2 offset: 1.4% Runtime: 34ms
...
Vn offset: ... Runtime: ...
【问题讨论】:
标签: python python-3.x bash unix scripting