小编use*_*942的帖子

需要从列表中删除无

我有excel在第一行有列名.我需要阅读它没有None:

a = [Sheet.UsedRange.Rows(1).Value]
[((u'Step', u'Test Case ID', u'Traceability  Ref', u'Test Description', u'Display', u'Test conditions', None, None, None, None, None, u'Test Criteria', u'Delay Time(ms)', u'Capture Time(ms)', u'Automation Type(A/S)', u'Expected Output', None, None, None, u'Actual Output', u'Comments'),)]
Run Code Online (Sandbox Code Playgroud)

我累了使用过滤器:

a = filter(None, a)
Run Code Online (Sandbox Code Playgroud)

我需要删除None(这是我的Excel中的空列).

python excel

1
推荐指数
1
解决办法
3599
查看次数

标签 统计

excel ×1

python ×1