openpyxl.styles.numbers module

class openpyxl.styles.numbers.NumberFormat(numFmtId=None, formatCode=None)[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

formatCode

Values must be of type <class ‘str’>

numFmtId

Values must be of type <class ‘int’>

class openpyxl.styles.numbers.NumberFormatDescriptor(*args, **kw)[源代码]

基类:openpyxl.descriptors.base.String

class openpyxl.styles.numbers.NumberFormatList(count=None, numFmt=())[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

property count
numFmt

A sequence (list or tuple) that may only contain objects of the declared type

openpyxl.styles.numbers.builtin_format_code(index)[源代码]

Return one of the standard format codes by index.

openpyxl.styles.numbers.builtin_format_id(fmt)[源代码]

Return the id of a standard style.

openpyxl.styles.numbers.is_builtin(fmt)[源代码]
openpyxl.styles.numbers.is_date_format(fmt)[源代码]
openpyxl.styles.numbers.is_datetime(fmt)[源代码]

Return date, time or datetime

openpyxl.styles.numbers.is_timedelta_format(fmt)[源代码]