openpyxl.descriptors.sequence module¶
- class openpyxl.descriptors.sequence.MultiSequence(name=None, **kw)[源代码]¶
基类:
openpyxl.descriptors.sequence.Sequence
Sequences can contain objects with different tags
- class openpyxl.descriptors.sequence.MultiSequencePart(expected_type, store)[源代码]¶
基类:
openpyxl.descriptors.base.Alias
Allow a multisequence to be built up from parts
Excluded from the instance __elements__ or __attrs__ as is effectively an Alias
- class openpyxl.descriptors.sequence.NestedSequence(name=None, **kw)[源代码]¶
基类:
openpyxl.descriptors.sequence.Sequence
Wrap a sequence in an containing object
- count = False¶
- class openpyxl.descriptors.sequence.Sequence(name=None, **kw)[源代码]¶
基类:
openpyxl.descriptors.base.Descriptor
A sequence (list or tuple) that may only contain objects of the declared type
- idx_base = 0¶
- seq_types = (<class 'list'>, <class 'tuple'>)¶
- to_tree(tagname, obj, namespace=None)[源代码]¶
Convert the sequence represented by the descriptor to an XML element
- unique = False¶
- class openpyxl.descriptors.sequence.ValueSequence(name=None, **kw)[源代码]¶
基类:
openpyxl.descriptors.sequence.Sequence
A sequence of primitive types that are stored as a single attribute. “val” is the default attribute
- attribute = 'val'¶