【发布时间】:2021-06-17 03:24:42
【问题描述】:
input:
- tests_to_run
tasks:
modify_user_input:
< Remove the empty elements from tests_to_run>
已经搜索了几个小时。有谁知道过滤输入的方法,所以我可以操作 tests_to_run 列表,所以它没有任何空元素。
示例输入和输出
Sample tests_to_run = ['test_a','','test_b','test_c','yrls']
Expected variable to be used in later tasks test_to_run_clean = ['test_a','test_b','test_c','yrls']
【问题讨论】: