摘要: shell 将文件名读入数组 我想得到一个文件列表,然后将结果读入一个数组,其中每个数组元素对应一个文件名。 shopt -s nullglob array=(*) array2=(file*) array3=(dir/*) 如果没有匹配项,则nullglob选项会使数组为空。 以下将在当前目录中创 阅读全文
posted @ 2021-12-10 18:38 michaelchengjl 阅读(1525) 评论(0) 推荐(0) 编辑
摘要: pytest-命令行传入自定义的参数到测试文件中 conftest.py import pytest def pytest_addoption(parser): parser.addoption("--aa", action="store", default='', help="the input 阅读全文
posted @ 2021-12-10 15:21 michaelchengjl 阅读(432) 评论(0) 推荐(0) 编辑