# 将元组中的None值去掉,并转换为list input_= [('接口自动化测试用例', None, None, None, None, None, None)] output = [] for each in input_: newList = list(filter(None,each)) output += newList print(output)