我有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中的空列).