本文由 大侠(AhcaoZhu)原创,转载请声明。
链接: https://blog.csdn.net/Ahcao2008
全文介绍系统内置 xlwings 模块、函数、类及类的方法和属性。
它通过代码抓取并经AI智能翻译和人工校对。
是一部不可多得的权威字典类工具书。它是系列集的一部分。后续陆续发布、敬请关注。【原创:AhcaoZhu大侠】
xlwings
◆os
◆sys
xlwings.utils
xlwings.conversion
xlwings.expansion
xlwings.main
xlwings._win32patch
xlwings.base_classes
xlwings.constants
xlwings._xlwindows
xlwings.udfs
xlwings.server
◆win32com.client.gencache
◆object
◆BaseException
◆Exception
◆OSError
xlwings.XlwingsError
xlwings.LicenseError
xlwings.NoSuchObjectError
xlwings.ShapeAlreadyExists
xlwings._xlwindows.ExcelBusyError
◆_ctypes._CData
◆_ctypes.Structure
xlwings._xlwindows._GUID
◆dict
xlwings.conversion.framework.Options
◆list
xlwings.conversion.framework.Pipeline
◆win32com.client.DispatchBaseClass
◆win32com.client.dynamic.CDispatch
◆win32com.client.CDispatch
xlwings._win32patch.CoClassBaseClass
xlwings._xlwindows.COMRetryMethodWrapper
xlwings._xlwindows.COMRetryObjectWrapper
xlwings._xlwindows.Engine
xlwings.base_classes.App
xlwings._xlwindows.App
xlwings.base_classes.Apps
xlwings._xlwindows.Apps
xlwings.base_classes.Book
xlwings._xlwindows.Book
xlwings.base_classes.Books
xlwings._xlwindows.Books
xlwings.base_classes.Characters
xlwings._xlwindows.Characters
xlwings.base_classes.Chart
xlwings._xlwindows.Chart
xlwings.base_classes.Charts
xlwings.base_classes.Collection
xlwings._xlwindows.Collection
xlwings._xlwindows.Charts
xlwings._xlwindows.Pictures
xlwings._xlwindows.Shapes
xlwings._xlwindows.Tables
xlwings.base_classes.Collection
xlwings.base_classes.Font
xlwings._xlwindows.Font
xlwings.base_classes.Name
xlwings._xlwindows.Name
xlwings.base_classes.Names
xlwings._xlwindows.Names
xlwings.base_classes.Note
xlwings._xlwindows.Note
xlwings.base_classes.PageSetup
xlwings._xlwindows.PageSetup
xlwings.base_classes.Picture
xlwings._xlwindows.Picture
xlwings.base_classes.Pictures
xlwings.base_classes.Collection
xlwings.base_classes.Range
xlwings._xlwindows.Range
xlwings.base_classes.Shape
xlwings._xlwindows.Shape
xlwings.base_classes.Sheet
xlwings._xlwindows.Sheet
xlwings.base_classes.Sheets
xlwings._xlwindows.Sheets
xlwings.base_classes.Table
xlwings._xlwindows.Table
xlwings.base_classes.Tables
xlwings.base_classes.Collection
xlwings.constants.AboveBelow
xlwings.constants.ActionType
xlwings.constants.Allocation
xlwings.constants.AllocationMethod
xlwings.constants.AllocationValue
xlwings.constants.ApplicationInternational
xlwings.constants.ApplyNamesOrder
xlwings.constants.ArabicModes
xlwings.constants.ArrangeStyle
xlwings.constants.ArrowHeadLength
xlwings.constants.ArrowHeadStyle
xlwings.constants.ArrowHeadWidth
xlwings.constants.AutoFillType
xlwings.constants.AutoFilterOperator
xlwings.constants.AxisCrosses
xlwings.constants.AxisGroup
xlwings.constants.AxisType
xlwings.constants.Background
xlwings.constants.BarShape
xlwings.constants.BorderWeight
xlwings.constants.BordersIndex
xlwings.constants.BuiltInDialog
xlwings.constants.CVError
xlwings.constants.CalcFor
xlwings.constants.CalculatedMemberType
xlwings.constants.Calculation
xlwings.constants.CalculationInterruptKey
xlwings.constants.CalculationState
xlwings.constants.CategoryType
xlwings.constants.CellChangedState
xlwings.constants.CellInsertionMode
xlwings.constants.CellType
xlwings.constants.ChartElementPosition
xlwings.constants.ChartGallery
xlwings.constants.ChartItem
xlwings.constants.ChartLocation
xlwings.constants.ChartPicturePlacement
xlwings.constants.ChartPictureType
xlwings.constants.ChartSplitType
xlwings.constants.ChartType
xlwings.constants.CheckInVersionType
xlwings.constants.ClipboardFormat
xlwings.constants.CmdType
xlwings.constants.ColorIndex
xlwings.constants.ColumnDataType
xlwings.constants.CommandUnderlines
xlwings.constants.CommentDisplayMode
xlwings.constants.ConditionValueTypes
xlwings.constants.ConnectionType
xlwings.constants.ConsolidationFunction
xlwings.constants.Constants
xlwings.constants.ContainsOperator
xlwings.constants.CopyPictureFormat
xlwings.constants.CorruptLoad
xlwings.constants.Creator
xlwings.constants.CredentialsMethod
xlwings.constants.CubeFieldSubType
xlwings.constants.CubeFieldType
xlwings.constants.CutCopyMode
xlwings.constants.DVAlertStyle
xlwings.constants.DVType
xlwings.constants.DataBarAxisPosition
xlwings.constants.DataBarBorderType
xlwings.constants.DataBarFillType
xlwings.constants.DataBarNegativeColorType
xlwings.constants.DataLabelPosition
xlwings.constants.DataLabelSeparator
xlwings.constants.DataLabelsType
xlwings.constants.DataSeriesDate
xlwings.constants.DeleteShiftDirection
xlwings.constants.Direction
xlwings.constants.DisplayBlanksAs
xlwings.constants.DisplayDrawingObjects
xlwings.constants.DisplayUnit
xlwings.constants.DupeUnique
xlwings.constants.DynamicFilterCriteria
xlwings.constants.EditionFormat
xlwings.constants.EditionOptionsOption
xlwings.constants.EditionType
xlwings.constants.EnableCancelKey
xlwings.constants.EnableSelection
xlwings.constants.EndStyleCap
xlwings.constants.ErrorBarDirection
xlwings.constants.ErrorBarInclude
xlwings.constants.ErrorBarType
xlwings.constants.ErrorChecks
xlwings.constants.FileAccess
xlwings.constants.FileFormat
xlwings.constants.FileValidationPivotMode
xlwings.constants.FillWith
xlwings.constants.FilterAction
xlwings.constants.FilterAllDatesInPeriod
xlwings.constants.FindLookIn
xlwings.constants.FixedFormatQuality
xlwings.constants.FixedFormatType
xlwings.constants.FormControl
xlwings.constants.FormatConditionOperator
xlwings.constants.FormatConditionType
xlwings.constants.FormatFilterTypes
xlwings.constants.FormulaLabel
xlwings.constants.GenerateTableRefs
xlwings.constants.GradientFillType
xlwings.constants.HAlign
xlwings.constants.HebrewModes
xlwings.constants.HighlightChangesTime
xlwings.constants.HtmlType
xlwings.constants.IMEMode
xlwings.constants.Icon
xlwings.constants.IconSet
xlwings.constants.ImportDataAs
xlwings.constants.InsertFormatOrigin
xlwings.constants.InsertShiftDirection
xlwings.constants.LayoutFormType
xlwings.constants.LayoutRowType
xlwings.constants.LegendPosition
xlwings.constants.LineStyle
xlwings.constants.Link
xlwings.constants.LinkInfo
xlwings.constants.LinkInfoType
xlwings.constants.LinkStatus
xlwings.constants.LinkType
xlwings.constants.ListConflict
xlwings.constants.ListDataType
xlwings.constants.ListObjectSourceType
xlwings.constants.LocationInTable
xlwings.constants.LookAt
xlwings.constants.LookFor
xlwings.constants.MSApplication
xlwings.constants.MailSystem
xlwings.constants.MarkerStyle
xlwings.constants.MeasurementUnits
xlwings.constants.MouseButton
xlwings.constants.MousePointer
xlwings.constants.OLEType
xlwings.constants.OLEVerb
xlwings.constants.OartHorizontalOverflow
xlwings.constants.OartVerticalOverflow
xlwings.constants.ObjectSize
xlwings.constants.Order
xlwings.constants.Orientation
xlwings.constants.PTSelectionMode
xlwings.constants.PageBreak
xlwings.constants.PageBreakExtent
xlwings.constants.PageOrientation
xlwings.constants.PaperSize
xlwings.constants.ParameterDataType
xlwings.constants.ParameterType
xlwings.constants.PasteSpecialOperation
xlwings.constants.PasteType
xlwings.constants.Pattern
xlwings.constants.PhoneticAlignment
xlwings.constants.PhoneticCharacterType
xlwings.constants.PictureAppearance
xlwings.constants.PictureConvertorType
xlwings.constants.PieSliceIndex
xlwings.constants.PieSliceLocation
xlwings.constants.PivotCellType
xlwings.constants.PivotConditionScope
xlwings.constants.PivotFieldCalculation
xlwings.constants.PivotFieldDataType
xlwings.constants.PivotFieldOrientation
xlwings.constants.PivotFieldRepeatLabels
xlwings.constants.PivotFilterType
xlwings.constants.PivotFormatType
xlwings.constants.PivotLineType
xlwings.constants.PivotTableMissingItems
xlwings.constants.PivotTableSourceType
xlwings.constants.PivotTableVersionList
xlwings.constants.Placement
xlwings.constants.Platform
xlwings.constants.PortugueseReform
xlwings.constants.PrintErrors
xlwings.constants.PrintLocation
xlwings.constants.Priority
xlwings.constants.PropertyDisplayedIn
xlwings.constants.ProtectedViewCloseReason
xlwings.constants.ProtectedViewWindowState
xlwings.constants.QueryType
xlwings.constants.RangeAutoFormat
xlwings.constants.RangeValueDataType
xlwings.constants.ReferenceStyle
xlwings.constants.ReferenceType
xlwings.constants.RemoveDocInfoType
xlwings.constants.RgbColor
xlwings.constants.RobustConnect
xlwings.constants.RoutingSlipDelivery
xlwings.constants.RoutingSlipStatus
xlwings.constants.RowCol
xlwings.constants.RunAutoMacro
xlwings.constants.SaveAction
xlwings.constants.SaveAsAccessMode
xlwings.constants.SaveConflictResolution
xlwings.constants.ScaleType
xlwings.constants.SearchDirection
xlwings.constants.SearchOrder
xlwings.constants.SearchWithin
xlwings.constants.SheetType
xlwings.constants.SheetVisibility
xlwings.constants.SizeRepresents
xlwings.constants.SlicerCrossFilterType
xlwings.constants.SlicerSort
xlwings.constants.SmartTagControlType
xlwings.constants.SmartTagDisplayMode
xlwings.constants.SortDataOption
xlwings.constants.SortMethod
xlwings.constants.SortMethodOld
xlwings.constants.SortOn
xlwings.constants.SortOrder
xlwings.constants.SortOrientation
xlwings.constants.SortType
xlwings.constants.SourceType
xlwings.constants.SpanishModes
xlwings.constants.SparkScale
xlwings.constants.SparkType
xlwings.constants.SparklineRowCol
xlwings.constants.SpeakDirection
xlwings.constants.SpecialCellsValue
xlwings.constants.StdColorScale
xlwings.constants.SubscribeToFormat
xlwings.constants.SubtotalLocationType
xlwings.constants.SummaryColumn
xlwings.constants.SummaryReportType
xlwings.constants.SummaryRow
xlwings.constants.TabPosition
xlwings.constants.TableStyleElementType
xlwings.constants.TextParsingType
xlwings.constants.TextQualifier
xlwings.constants.TextVisualLayoutType
xlwings.constants.ThemeColor
xlwings.constants.ThemeFont
xlwings.constants.ThreadMode
xlwings.constants.TickLabelOrientation
xlwings.constants.TickMark
xlwings.constants.TimePeriods
xlwings.constants.TimeUnit
xlwings.constants.ToolbarProtection
xlwings.constants.TopBottom
xlwings.constants.TotalsCalculation
xlwings.constants.TrendlineType
xlwings.constants.UnderlineStyle
xlwings.constants.UpdateLinks
xlwings.constants.VAlign
xlwings.constants.WBATemplate
xlwings.constants.WebFormatting
xlwings.constants.WebSelectionType
xlwings.constants.WindowState
xlwings.constants.WindowType
xlwings.constants.WindowView
xlwings.constants.XlmMacroType
xlwings.constants.XmlExportResult
xlwings.constants.XmlImportResult
xlwings.constants.XmlLoadOption
xlwings.constants.YesNoGuess
xlwings.conversion.framework.Accessor
xlwings.conversion.framework.Converter
xlwings.conversion.numpy_conv.NumpyArrayConverter
xlwings.conversion.standard.DictConverter
xlwings.conversion.standard.RangeAccessor
xlwings.conversion.standard.RawValueAccessor
xlwings.conversion.standard.ValueAccessor
xlwings.conversion.framework.ConversionContext
xlwings.conversion.standard.AdjustDimensionsStage
xlwings.conversion.standard.CleanDataForWriteStage
xlwings.conversion.standard.CleanDataFromReadStage
xlwings.conversion.standard.Ensure2DStage
xlwings.conversion.standard.ExpandRangeStage
xlwings.conversion.standard.ReadValueFromRangeStage
xlwings.conversion.standard.TransposeStage
xlwings.conversion.standard.WriteValueToRangeStage
xlwings.expansion.Expander
xlwings.expansion.HorizontalExpander
xlwings.expansion.TableExpander
xlwings.expansion.VerticalExpander
xlwings.main.App
xlwings.main.Apps
xlwings.main.ActiveEngineApps
xlwings.main.Book
xlwings.main.Characters
xlwings.main.Chart
xlwings.main.Collection
xlwings.main.Books
xlwings.main.ActiveAppBooks
xlwings.main.Charts
xlwings.main.Pictures
xlwings.main.Shapes
xlwings.main.Sheets
xlwings.main.ActiveBookSheets
xlwings.main.Tables
xlwings.main.Engine
xlwings.main.Engines
xlwings.main.Font
xlwings.main.Macro
xlwings.main.Name
xlwings.main.Names
xlwings.main.Note
xlwings.main.PageSetup
xlwings.main.Picture
xlwings.main.Range
xlwings.udfs.ComRange
xlwings.main.Ranges
xlwings.main.RangeColumns
xlwings.main.RangeRows
xlwings.main.Shape
xlwings.main.Sheet
xlwings.main.Table
xlwings.server.XLPython
xlwings.server.XLPythonEnumerator
xlwings.server.XLPythonObject
xlwings.server.XLPythonOption
xlwings.utils.VBAWriter
xlwings.utils.VersionNumber
xlwings, fullname=xlwings, file=xlwings_init_.py
序号 | 类别 | 数量 |
---|---|---|
2 | bool | 2 |
4 | str | 6 |
5 | tuple | 1 |
6 | list | 1 |
8 | dict | 1 |
9 | module | 13 |
10 | class | 15 |
11 | function | 11 |
13 | residual | 7 |
14 | system | 12 |
15 | private | 2 |
16 | all | 57 |
1 has_pywin32 True
2 USER_CONFIG_FILE C:\Users\zhujg.xlwings\xlwings.conf
os, fullname=os, file=os.py
sys, fullname=sys, file=
utils, fullname=xlwings.utils, file=xlwings\utils.py
conversion, fullname=xlwings.conversion, file=xlwings\conversion_init_.py
expansion, fullname=xlwings.expansion, file=xlwings\expansion.py
main, fullname=xlwings.main, file=xlwings\main.py
xlwings -让Excel与Python一起飞翔!
[主页和文档](https://www.xlwings.org)
版权所有(C) 2014年至今,Zoomer Analytics GmbH。
版权所有。许可:BSD 3-clause(详见License.txt)
_win32patch, fullname=xlwings._win32patch, file=xlwings_win32patch.py
[参见](https://github.com/xlwings/xlwings/issues/1789)
如果有以下解决方案,可以再次删除此文件,来自[pywin32 v301](https://github.com/mhammond/pywin32/issues/1870),
在以下许可下发布:除非在特定的源文件中说明,此工作是版权(c) 1996-2008,格雷格·斯坦和马克·哈蒙德。版权所有。
在满足以下条件的情况下,允许以源代码和二进制形式重新分发和使用,无论是否进行修改:重新分发源代码必须保留上述版权声明、此条件列表和以下免责声明。
以二进制形式重新发布必须在发布时提供的文件和/或其他材料中复制上述版权声明、此条件列表和以下免责声明。
没有事先明确的书面许可,Greg Stein, Mark Hammond或贡献者的名字都不能用于支持或推广从本软件衍生的产品。
本软件由版权所有者和贡献者“按现状”提供,任何明示或默示保证,包括但不限于对适销性和适合特定目的的默示保证。
在任何情况下,董事或贡献者都不对任何直接、间接、附带、特殊、惩戒性或后果性损害负责(包括但不限于采购替代商品或服务;丧失使用、数据或利润;
或业务中断),无论造成何种原因,并在任何责任理论,无论是在合同,严格责任,或侵权行为(包括疏忽或其他),以任何方式使用本软件,即使被告知这种损害的可能性。
base_classes, fullname=xlwings.base_classes, file=xlwings\base_classes.py
constants, fullname=xlwings.constants, file=xlwings\constants.py
_xlwindows, fullname=xlwings._xlwindows, file=xlwings_xlwindows.py
udfs, fullname=xlwings.udfs, file=xlwings\udfs.py
server, fullname=xlwings.server, file=xlwings\server.py
gencache, fullname=win32com.client.gencache, file=win32com\client\gencache.py
管理生成的Python代码的缓存。
描述:
此文件管理生成的Python代码的缓存。当从命令行运行时,它还提供了许多用于管理缓存的选项。
实现
每个typelib都生成一个文件名格式为"{guid}x{lcid}x{major}x{minor}.py"
一个外部持久化字典将所有已知类型库中的所有已知iid映射到类型库本身。
因此,只要Python代码知道一个对象的IID,它就可以找到支持它的类型库的IID、LCID和版本。
给定这些信息,它可以找到具有支持的Python模块。如果需要,可以动态地生成这种支持。
目前只使用pickle字典,但应该使用某种索引文件。
可能是OLE2复合文件,还是bsddb文件?
wraps(wrapped, assigned=(‘module’, ‘name’, ‘qualname’, ‘doc’, ‘annotations’), updated=(‘dict’,)), module=functools, line:67 at functools.py
将update_wrapper()应用于包装器函数的装饰器工厂返回一个调用update_wrapper()的装饰器,将被装饰的函数作为包装器参数,
并将wraps()的参数作为其余参数。默认参数与update_wrapper()相同。
这是一个方便的函数,可以简化将partial()应用于update_wrapper()。
load(index=1, header=1, chunksize=5000), module=xlwings.main, line:4732 at site-packages\xlwings\main.py
将活动工作簿中的选定单元格加载到pandas数据框架DataFrame中。
如果您选择的单个单元格具有相邻的单元格,则范围将自动扩展(通过当前区域)并转换为pandas数据框架。
如果你没有安装pandas,它会以嵌套列表的形式返回值。
注意:只在交互式环境中使用,例如Jupyter notebook!不要在脚本中使用它,因为它取决于活动的工作簿。
参数:
index : bool 或者 int, 缺省值 1
定义左侧将被转换为DataFrame的索引
header : bool 或者 int, 缺省值 1
定义顶部行数将被转换为DataFrame的列
chunksize : int, 缺省值 5000
块加载大数组。
举例:
--------
>>> import xlwings as xw
>>> xw.load()
参见: :meth:`view `
.. versionchanged:: 0.23.1
view(obj, sheet=None, table=True, chunksize=5000), module=xlwings.main, line:4669 at site-packages\xlwings\main.py
打开新工作簿,默认情况下在其第一个工作表上显示对象。
如果您提供了工作表对象,它将在现有工作表上显示对象之前清除工作表。
注意:只能在交互式环境中使用,例如Jupyter notebook!不要在脚本中使用它,因为它取决于活动的工作簿。
参数:
----------
obj : 任何带有内置转换器的要显示对象的类型,例如数字、字符串、列表、numpy数组、pandas DataFrames
sheet : Sheet, 缺省值 None
sheet对象。如果没有提供,则使用新工作簿的第一个工作表。
table : bool, 缺省值 True
如果你的对象是pandas DataFrame,默认情况下它被格式化为Excel table
chunksize : int, 缺省值 5000
默认5000块大数组的加载。
举例:
--------
>>> import xlwings as xw
>>> import pandas as pd
>>> import numpy as np
>>> df = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd'])
>>> xw.view(df)
参见: :meth:`load `
.. versionchanged:: 0.22.0
xlserial_to_datetime(serial), module=xlwings.utils, line:69 at site-packages\xlwings\utils.py
将Excel的串行格式的日期(例如44197.0)转换为Python datetime对象
serve(clsid=‘{…}’), module=xlwings.server, line:340 at site-packages\xlwings\server.py
启动COM服务器,clsid是XLPython对象类id
get_udf_module(module_name, xl_workbook), module=xlwings.udfs, line:386 at site-packages\xlwings\udfs.py
import_udfs(module_names, xl_workbook), module=xlwings.udfs, line:710 at site-packages\xlwings\udfs.py
xlarg(arg, convert=None, **kwargs), module=xlwings.udfs, line:223 at site-packages\xlwings\udfs.py
xlfunc(f=None, **kwargs), module=xlwings.udfs, line:144 at site-packages\xlwings\udfs.py
xlret(convert=None, **kwargs), module=xlwings.udfs, line:210 at site-packages\xlwings\udfs.py
xlsub(f=None, **kwargs), module=xlwings.udfs, line:198 at site-packages\xlwings\udfs.py
XlwingsError, xlwings.XlwingsError, module=xlwings, line:0 at
LicenseError, xlwings.LicenseError, module=xlwings, line:0 at
ShapeAlreadyExists, xlwings.ShapeAlreadyExists, module=xlwings, line:0 at
NoSuchObjectError, xlwings.NoSuchObjectError, module=xlwings, line:0 at
App, xlwings.main.App, module=xlwings.main, line:0 at
一个应用程序对应于一个Excel实例,通常应该用作上下文管理器,以确保所有内容都被正确清理,并防止僵尸进程。
新的Excel实例可以这样启动:
import xlwings as xw
with xw.App() as app:
print(app.books)
一个 app 对象是以下的集合 :meth:`apps `
>>> xw.apps
Apps([, ])
>>> xw.apps[1668] # get the available PIDs via xw.apps.keys()
>>> xw.apps.active
参数:
----------
visible : bool, 缺省值 None
返回或设置一个布尔值,该值决定应用程序是否可见。如果对象还不存在,缺省值会保持状态不变,或者设置visible =True。
spec : str, 缺省值 None
仅mac,使用Excel应用程序的完整路径,
例如: ``/Applications/Microsoft Office 2011/Microsoft Excel`` 或者 ``/Applications/Microsoft Excel``
在Windows上,如果您想更改xlwings对话的Excel版本,请转到“控制面板>程序和功能”和“修复”您想要的Office版本缺省值。
注意::
在Mac上,虽然xlwings允许你运行多个Excel实例,但它是Mac版Excel官方不支持的功能:
与Windows不同,如果一个文件已经在另一个实例中打开,Excel不会要求你打开该文件的只读版本。
这意味着您需要自己注意,以免同一文件被不同实例覆盖。
1 api=
kind:property type:property class:
2 books=kind:property type:property class:
3 calculation=kind:property type:property class:
4 cut_copy_mode=kind:property type:property class:
5 display_alerts=kind:property type:property class:
6 enable_events=kind:property type:property class:
7 engine=kind:property type:property class:
8 hwnd=kind:property type:property class:
9 interactive=kind:property type:property class:
10 path=kind:property type:property class:
11 pid=kind:property type:property class:
12 screen_updating=kind:property type:property class:
13 selection=kind:property type:property class:
14 startup_path=kind:property type:property class:
15 status_bar=kind:property type:property class:
16 version=kind:property type:property class:
17 visible=kind:property type:property class:
18 activate()
kind=method class=App objtype=function
激活Excel应用程序。
参数:
----------
steal_focus : bool, 缺省值 False
如果为True,则创建frontmost(最上面的)应用程序并将焦点从Python移交给Excel。
.. versionadded:: 0.9.0
19 alert()
kind=method class=App objtype=function
这对应于VBA中的``MsgBox``,显示一个警告/消息框,并返回按下按钮的值。
对于xlwings Server,该函数不返回值,而是接受回调的名称,它将向该回调提供所按按钮的值。
参数:
----------
prompt : str, 缺省值 None
要显示的信息。
title : str, 缺省值 None
告警的标题。
buttons : str, 缺省值 ``"ok"``
可以是 ``"ok"``, ``"ok_cancel"``, ``"yes_no"``, 或 ``"yes_no_cancel"``.
mode : str, 缺省值 None
可以是 ``"info"`` 或者 ``"critical"``. 谷歌Sheets不支持。
callback : str, 缺省值 None
仅供xlwings Server使用:您可以提供一个函数的名称,该函数将以按下按钮的值作为参数被调用。
函数必须存在于客户端,即在VBA或JavaScript中。
返回
-------
button_value: str 或者 None
当与xlwings Server一起使用时返回``None``,否则按下按钮的小写值:
``"ok"``, ``"cancel"``, ``"yes"``, ``"no"``.
.. versionadded:: 0.27.13
20 calculate()
kind=method class=App objtype=function
计算所有打开的帐簿。
versionadded: 0.3.6
21 create_report()
kind=method class=App objtype=function
22 kill()
kind=method class=App objtype=function
强制Excel应用程序通过杀死它的进程退出。
versionadded: 0.9.0
23 macro()
kind=method class=App objtype=function
在Excel VBA中运行子或函数,这些子或函数不是特定工作簿的一部分,而是外接程序的一部分。
参数
---------
name : 子或函数的名称,包含或不包含模块名称,例如,``'Module1.MyMacro'`` 或 ``'MyMacro'``
举例:
--------
这个VBA函数:
.. code-block:: vb.net
Function MySum(x, y)
MySum = x + y
End Function
可以这样访问:
>>> import xlwings as xw
>>> app = xw.App()
>>> my_sum = app.macro('MySum')
>>> my_sum(1, 2)
3
典型地,也支持以下:
.. code-block:: vb.net
Function MySum(x as integer, y as integer)
MySum = x + y
End Function
>>> import xlwings as xw
>>> app = xw.App()
>>> my_sum = app.macro('MySum')
>>> my_sum(1, 2)
3
但是不支持数据。所以以下代码无效:
.. code-block:: vb.net
Function MySum(arr() as integer)
' code here
End Function
参见: :meth:`Book.macro`
.. versionadded:: 0.9.0
24 properties()
kind=method class=App objtype=function
上下文管理器,允许您轻松地临时更改应用程序的属性。
一旦代码离开with块,属性就会变回以前的状态。
注意:必须作为上下文管理器使用,否则将不起作用。
此外,你只能使用既能读又能写的应用程序属性。
举例:
--------
::
import xlwings as xw
app = App()
# Sets app.display_alerts = False
with app.properties(display_alerts=False):
# do stuff
# Sets app.calculation = 'manual' and app.enable_events = True
with app.properties(calculation='manual', enable_events=True):
# do stuff
# 确保即使在with块中发生错误,状态栏也被重置
with app.properties(status_bar='Calculating...'):
# do stuff
.. versionadded:: 0.24.4
25 quit()
kind=method class=App objtype=function
退出应用程序而不保存任何工作簿。
versionadded: 0.3.3
26 range()
kind=method class=App objtype=function
范围对象从活动工作簿的活动页,
参见:meth:'Range'
..versionadded: 0.9.0
27 render_template()
kind=method class=App objtype=function
这个函数需要xlwings :bdg-secondary:`PRO`。
这是一个关于 :meth:`mysheet.render_template ` 的方便的包装器。
根据“template”和其中包含的变量(Jinja变量语法),将所有关键字参数的值写入“output”文件。
支持以下变量类型:
字符串、数字、列表、简单字典、NumPy数组、Pandas DataFrames、图片和Matplotlib/Plotly图形。
参数:
----------
template: str 或者 path-like object
Excel模板的路径。 例如: ``r'C:\Path\to\my_template.xlsx'``
output: str 或者 path-like object
Report 的路径, 例如: ``r'C:\Path\to\my_report.xlsx'``
book_settings: dict, 缺省值 None
``xlwings.Book``的字典。 参数: 详情参见: :attr:`xlwings.Book`.
例如:: ``book_settings={'update_links': False}``.
data: kwargs
模板中使用的 key/value 键值对。
Returns
-------
wb: xlwings Book
.. versionadded:: 0.24.4
Book, xlwings.main.Book, module=xlwings.main, line:0 at
book对象是: :meth:`books `集合:
>>> import xlwings as xw
>>> xw.books[0]
连接到一个工作簿的最简单的方法是 ``xw.Book``:
如果同一个工作簿在多个实例中打开,它会在所有应用实例中查找这个工作簿并返回一个错误。
要连接到活动应用实例中的工作簿,请使用``xw.Books``和指特定的应用程序,使用:
>>> app = xw.App() # 或者 xw.apps[10559] (get the PIDs via xw.apps.keys())
>>> app.books['Book1']
+--------------------+--------------------------------------+--------------------------------------------+
| | xw.Book | xw.books |
+====================+======================================+============================================+
| New book | ``xw.Book()`` | ``xw.books.add()`` |
+--------------------+--------------------------------------+--------------------------------------------+
| Unsaved book | ``xw.Book('Book1')`` | ``xw.books['Book1']`` |
+--------------------+--------------------------------------+--------------------------------------------+
| Book by (full)name | ``xw.Book(r'C:/path/to/file.xlsx')`` | ``xw.books.open(r'C:/path/to/file.xlsx')`` |
+--------------------+--------------------------------------+--------------------------------------------+
参数:
----------
fullname : str 或者 path-like object, 缺省值 None
Full path 或者 name (incl. xlsx, xlsm etc.) of existing workbook or name of an
unsaved workbook. Without a full path, it looks for the file in the current
working directory.
update_links : bool, 缺省值 None
If this argument is omitted, the user is prompted to specify how links will be
updated
read_only : bool, 缺省值 False
True to open workbook in read-only mode
format : str
If opening a text file, this specifies the delimiter character
password : str
Password to open a protected workbook
write_res_password : str
Password to write to a write-reserved workbook
ignore_read_only_recommended : bool, 缺省值 False
Set to ``True`` to mute the read-only recommended message
origin : int
For text files only. Specifies where it originated. Use Platform constants.
delimiter : str
If format argument is 6, this specifies the delimiter.
editable : bool, 缺省值 False
This option is only for legacy Microsoft Excel 4.0 addins.
notify : bool, 缺省值 False
Notify the user when a file becomes available If the file cannot be opened in read/write mode.
converter : int
The index of the first file converter to try when opening the file.
add_to_mru : bool, 缺省值 False
Add this workbook to the list of recently added workbooks.
local : bool, 缺省值 False
If ``True``, saves files against the language of Excel, otherwise against the language of VBA. Not supported on macOS.
corrupt_load : int, 缺省值 xlNormalLoad
Can be one of xlNormalLoad, xlRepairFile 或者 xlExtractData.
Not supported on macOS.
json : dict
A JSON object as delivered by the MS Office Scripts or Google Apps Script xlwings module but in a deserialized form, i.e., as dictionary.
.. versionadded:: 0.26.0
mode : str, 缺省值 None
Either ``"i"`` (interactive (缺省值)) 或者 ``"r"`` (read). In interactive mode,
xlwings opens the workbook in Excel, i.e., Excel needs to be installed. In read
mode, xlwings reads from the file directly, without requiring Excel to be
installed. Read mode requires xlwings :bdg-secondary:`PRO`.
.. versionadded:: 0.28.0
1 api=
kind:property type:property class:
2 app=kind:property type:property class:
3 fullname=kind:property type:property class:
4 name=kind:property type:property class:
5 names=kind:property type:property class:
6 selection=kind:property type:property class:
7 sheet_names=kind:property type:property class:
8 sheets=kind:property type:property class:
9 activate()
kind=method class=Book objtype=function
10 close()
kind=method class=Book objtype=function
工作簿关闭而不保存。
versionadded: 0.1.1
11 json()
kind=method class=Book objtype=function
返回MS Office Scripts 或谷歌 Apps Script xlwings 模块所期望的 JSON 可序列化对象。
仅适用于已通过 ``xw.Book(json=...)`` 实例化的book对象。
versionadded: 0.26.0
12 macro()
kind=method class=Book objtype=function
13 render_template()
kind=method class=Book objtype=function
14 save()
kind=method class=Book objtype=function
保存工作簿。
如果提供了路径,就像Excel中的SaveAs()一样。
如果没有指定路径,并且之前没有保存过该文件,则它将保存在当前工作目录中,具有当前文件名。
在没有提示的情况下覆盖现有文件。
要更改文件类型,请提供适当的扩展名,例如,要将``myfile.xlsx``保存为``xlsb``格式,请提供``myfile.xlsb``作为路径。
参数:
---------
path : str 或者 path-like object, 缺省值 None
你想要保存Book的路径。
password : str, 缺省值 None
保护密码。最大15个字符
.. versionadded :: 0.25.1
示例:
-------
>>> import xlwings as xw
>>> wb = xw.Book()
>>> wb.save()
>>> wb.save(r'C:\path\to\new_file_name.xlsx')
.. versionadded:: 0.3.1
15 set_mock_caller()
kind=method class=Book objtype=function
设置Excel文件,当代码从Python调用而不是通过``RunPython``从Excel调用时,该文件用于模拟``xw.Book.caller()``。
举例:
--------
# 这段代码从 Excel 通过 RunPython 和直接从Python运行时不变
import os
import xlwings as xw
def my_macro():
sht = xw.Book.caller().sheets[0]
sht.range('A1').value = 'Hello xlwings!'
if __name__ == '__main__':
xw.Book('file.xlsm').set_mock_caller()
my_macro()
.. versionadded:: 0.3.1
16 to_pdf()
kind=method class=Book objtype=function
将整个Excel工作簿或工作表的一个子集导出为PDF文件。
如果你想打印隐藏的表,你需要在``include``下显式列出它们。
参数路径:str或类路径对象,默认无
include: int或str或list,默认无要包含哪些表:以表索引(如Excel中基于1)或表名的形式提供一个表的选择。对于单个工作表可以是int/str,对于多个工作表可以是int/str的列表。exclude: int或str或list,默认无要排除哪些表:以表索引(像Excel一样基于1)或表名的形式提供一个表的选择。对于单个工作表可以是int/str,对于多个工作表可以是int/str的列表。
layout: str或类路径对象,默认值无此参数需要xlwings:bdg-secondary: ' PRO '。将在其上打印报告的PDF文件的路径。这是理想的页眉和页脚以及图形/艺术品的无边界打印。PDF文件需要只有1页(每个报告页面使用相同的布局),或者需要与报告相同的页数(每个报告页面打印在布局PDF中的相应页面上)。versionadded: 0.24.3
以此字符/字符串开头的表名将不会被打印。versionadded:: 0.24.4 show: bool, 缺省值 False一旦创建,打开PDF文件的默认应用程序。versionadded:: 0.24.6 quality: str, 缺省值 ' " standard' ' ' PDF文件的质量。可以是“标准”“或”“最低”“。…versionadded: 0.26.2例子> > > wb = xw.Book () > > > wb.sheets[0](“A1”)。value = 'PDF'
> > > wb。to pdf()参见:meth: ' xlwings.Sheet。To pdf ' ..versionadded: 0.21.1
参数:
----------
path : str 或者 path-like object, 缺省值 None
PDF文件的路径,默认与工作簿同名,位于同一目录。对于未保存的工作簿,它默认为当前工作目录。
include : int 或者 str 或者 list, 缺省值 None
Which sheets to include: provide a selection of sheets in the form of sheet
indices (1-based like in Excel) or sheet names. Can be an int/str for a
single sheet or a list of int/str for multiple sheets.
exclude : int 或者 str 或者 list, 缺省值 None
Which sheets to exclude: provide a selection of sheets in the form of sheet
indices (1-based like in Excel) or sheet names. Can be an int/str for a
single sheet or a list of int/str for multiple sheets.
layout : str 或者 path-like object, 缺省值 None
This argument requires xlwings :bdg-secondary:`PRO`.
Path to a PDF file on which the report will be printed. This is ideal for
headers and footers as well as borderless printing of graphics/artwork. The
PDF file either needs to have only 1 page (every report page uses the same
layout) or otherwise needs the same amount of pages as the report (each
report page is printed on the respective page in the layout PDF).
.. versionadded:: 0.24.3
exclude_start_string : str, 缺省值 ``'#'``
Sheet names that start with this character/string will not be printed.
.. versionadded:: 0.24.4
show : bool, 缺省值 False
Once created, open the PDF file with the 缺省值 application.
.. versionadded:: 0.24.6
quality : str, 缺省值 ``'standard'``
Quality of the PDF file. Can either be ``'standard'`` 或者 ``'minimum'``.
.. versionadded:: 0.26.2
举例:
--------
>>> wb = xw.Book()
>>> wb.sheets[0]['A1'].value = 'PDF'
>>> wb.to_pdf()
See also :meth:`xlwings.Sheet.to_pdf`
.. versionadded:: 0.21.1
17 caller()
kind=class method class=Book objtype=classmethod
classmethod(function) -> method转换函数为类方法。
Chart, xlwings.main.Chart, module=xlwings.main, line:0 at
chart对象是:meth: ' charts '集合:
>>> import xlwings as xw
>>> sht = xw.books['Book1'].sheets[0]
>>> sht.charts[0] # 或者 sht.charts['ChartName']
>
1 api=
kind:property type:property class:
2 chart_type=kind:property type:property class:
3 height=kind:property type:property class:
4 left=kind:property type:property class:
5 name=kind:property type:property class:
6 parent=kind:property type:property class:
7 top=kind:property type:property class:
8 width=kind:property type:property class:
9 delete()
kind=method class=Chart objtype=function
删除图表。
10 set_source_data()
kind=method class=Chart objtype=function
设置图表的源数据范围。
参数
---------
source : Range
Range object, 例如: ``xw.books['Book1'].sheets[0].range('A1')``
11 to_pdf()
kind=method class=Chart objtype=function
12 to_png()
kind=method class=Chart objtype=function
导出图表为PNG图片。
参数:
----------
path : str 或者 path-like, 缺省值 None
图片存储路径。如果Excel文件被存储,默认为与Excel文件在同一目录下的图表名称,否则为当前工作目录。
.. versionadded:: 0.24.8
Engine, xlwings.main.Engine, module=xlwings.main, line:0 at
1 apps=
kind:property type:property class:
2 name=kind:property type:property class:
3 type=kind:property type:property class:
4 activate()
kind=method class=Engine objtype=function
Name, xlwings.main.Name, module=xlwings.main, line:0 at
name对象是: :meth:`names ` 集合:
>>> import xlwings as xw
>>> sht = xw.books['Book1'].sheets[0]
>>> sht.names[0] # 或者 sht.names['MyName']
.. versionadded:: 0.9.0
1 api=
kind:property type:property class:
2 name=kind:property type:property class:
3 refers_to=kind:property type:property class:
4 refers_to_range=kind:property type:property class:
5 delete()
kind=method class=Name objtype=function
Picture, xlwings.main.Picture, module=xlwings.main, line:0 at
图片对象是:meth:`pictures `集合:
>>> import xlwings as xw
>>> sht = xw.books['Book1'].sheets[0]
>>> sht.pictures[0] # 或者 sht.charts['PictureName']
1 api=
kind:property type:property class:
2 height=kind:property type:property class:
3 left=kind:property type:property class:
4 lock_aspect_ratio=kind:property type:property class:
5 name=kind:property type:property class:
6 parent=kind:property type:property class:
7 top=kind:property type:property class:
8 width=kind:property type:property class:
9 delete()
kind=method class=Picture objtype=function
10 update()
kind=method class=Picture objtype=function
将现有图片替换为新图片,接管现有图片的属性。
参数
---------
image : str 或者 path-like object 或者 matplotlib.figure.Figure
文件路径或Matplotlib图形对象。
format : str, 缺省值 None
See under ``Pictures.add()``
export_options : dict, 缺省值 None
See under ``Pictures.add()``
.. versionadded:: 0.5.0
Range, xlwings.main.Range, module=xlwings.main, line:0 at
返回一个Range对象,该对象表示一个单元格或一组单元格。
参数
---------
cell1 : str 或者 tuple 或者 Range
A1表示法中左上角范围的名称,或作为index-tuple或Name或xw。对象范围。它还可以使用范围操作符(冒号)指定一个范围,例如。'A1:B2'
cell2 : str 或者 tuple 或者 Range, 缺省值 None
右下角的范围名称,以A1表示法或index-tuple或Name或xw表示。对象范围。
举例:
--------
.. code-block:: python
import xlwings as xw
sheet1 = xw.Book("MyBook.xlsx").sheets[0]
sheet1.range("A1")
sheet1.range("A1:C3")
sheet1.range((1,1))
sheet1.range((1,1), (3,3))
sheet1.range("NamedRange")
# 或者 using index/slice notation
sheet1["A1"]
sheet1["A1:C3"]
sheet1[0, 0]
sheet1[0:4, 0:4]
sheet1["NamedRange"]
1 address=
kind:property type:property class:
2 api=kind:property type:property class:
3 characters=kind:property type:property class:
4 color=kind:property type:property class:
5 column=kind:property type:property class:
6 column_width=kind:property type:property class:
7 columns=kind:property type:property class:
8 count=kind:property type:property class:
9 current_region=kind:property type:property class:
10 font=kind:property type:property class:
11 formula=kind:property type:property class:
12 formula2=kind:property type:property class:
13 formula_array=kind:property type:property class:
14 has_array=kind:property type:property class:
15 height=kind:property type:property class:
16 hyperlink=kind:property type:property class:
17 impl=kind:property type:property class:
18 last_cell=kind:property type:property class:
19 left=kind:property type:property class:
20 merge_area=kind:property type:property class:
21 merge_cells=kind:property type:property class:
22 name=kind:property type:property class:
23 note=kind:property type:property class:
24 number_format=kind:property type:property class:
25 raw_value=kind:property type:property class:
26 row=kind:property type:property class:
27 row_height=kind:property type:property class:
28 rows=kind:property type:property class:
29 shape=kind:property type:property class:
30 sheet=kind:property type:property class:
31 size=kind:property type:property class:
32 table=kind:property type:property class:
33 top=kind:property type:property class:
34 value=kind:property type:property class:
35 width=kind:property type:property class:
36 wrap_text=kind:property type:property class:
37 add_hyperlink()
kind=method class=Range objtype=function
添加一个超链接到指定的Range (single Cell)
参数
---------
address : str
超链接的地址。
text_to_display : str, 缺省值 None
超链接要显示的文本。默认为超链接地址。
screen_tip: str, 缺省值 None
鼠标指针在超链接上暂停时显示的屏幕提示。默认设置为 ' -单击一次即可。单击并按住以选择此单元格。'
.. versionadded:: 0.3.0
38 autofill()
kind=method class=Range objtype=function
自动填充目标范围。注意,目标范围必须包括起始范围。
参数
---------
destination : Range
起始范围。
type_ : str, 缺省值 ``"fill_缺省值"``
以下字符串之一: ``"fill_copy"``, ``"fill_days"``,
``"fill_default"``, ``"fill_formats"``, ``"fill_months"``,
``"fill_series"``, ``"fill_values"``, ``"fill_weekdays"``, ``"fill_years"``,
``"growth_trend"``, ``"linear_trend"``, ``"flash_fill``
.. versionadded:: 0.30.1
39 autofit()
kind=method class=Range objtype=function
自动拟合范围内所有单元格的宽度和高度。
* 只自动拟合列的宽度使用``myrange.columns.autofit()``
* 只自动拟合行高度使用``myrange.rows.autofit()``
.. versionchanged:: 0.9.0
40 clear()
kind=method class=Range objtype=function
清除范围的内容和格式。
41 clear_contents()
kind=method class=Range objtype=function
清除范围的内容,但保留格式。
42 clear_formats()
kind=method class=Range objtype=function
清除Range的格式,但保留Range的内容。versionadded: 0.26.2
43 copy()
kind=method class=Range objtype=function
将范围复制到目标范围或剪贴板。
参数:
----------
destination : xlwings.Range
xlwings Range 将指定的范围复制到的范围。如果省略,则将范围复制到剪贴板。返回所有
Returns
-------
None
44 copy_picture()
kind=method class=Range objtype=function
将范围作为图片复制到剪贴板。
参数:
----------
appearance : str, 缺省值 'screen'
Either 'screen' 或者 'printer'.
format : str, 缺省值 'picture'
Either 'picture' 或者 'bitmap'.
.. versionadded:: 0.24.8
45 delete()
kind=method class=Range objtype=function
46 end()
kind=method class=Range objtype=function
返回一个Range对象,该对象表示位于包含源范围的区域末尾的单元格。
相当于按下Ctrl+Up、Ctrl+down、Ctrl+left或Ctrl+right。
参数:
----------
direction : One of 'up', 'down', 'right', 'left'
举例:
--------
>>> import xlwings as xw
>>> wb = xw.Book()
>>> sheet1 = xw.sheets[0]
>>> sheet1.range('A1:B2').value = 1
>>> sheet1.range('A1').end('down')
>>> sheet1.range('B2').end('right')
.. versionadded:: 0.9.0
47 expand()
kind=method class=Range objtype=function
根据所提供的模式扩展范围。忽略左上角的空单元格(不像``Range.end()``)。
参数:
----------
mode : str, 缺省值 'table'
One of ``'table'`` (=down and right), ``'down'``, ``'right'``.
Returns
-------
Range
举例:
--------
>>> import xlwings as xw
>>> wb = xw.Book()
>>> sheet1 = wb.sheets[0]
>>> sheet1.range('A1').value = [[None, 1], [2, 3]]
>>> sheet1.range('A1').expand().address
$A$1:$B$2
>>> sheet1.range('A1').expand('right').address
$A$1:$B$1
.. versionadded:: 0.9.0
48 get_address()
kind=method class=Range objtype=function
以指定格式返回范围的地址。如果不需要更改任何默认值,则可以使用``address``来代替。
参数
---------
row_absolute : bool, 缺省值 True
设置为True,返回引用的行部分为绝对引用。
column_absolute : bool, 缺省值 True
设置为True,将引用的列部分作为绝对引用返回。
include_sheetname : bool, 缺省值 False
设置为True,在地址中包含Sheet名称。如果external=True则忽略。
external : bool, 缺省值 False
设置为True返回一个包含工作簿和工作表名称的外部引用。
Returns
-------
str
举例:
--------
::
>>> import xlwings as xw
>>> wb = xw.Book()
>>> sheet1 = wb.sheets[0]
>>> sheet1.range((1,1)).get_address()
'$A$1'
>>> sheet1.range((1,1)).get_address(False, False)
'A1'
>>> sheet1.range((1,1), (3,3)).get_address(True, False, True)
'Sheet1!A$1:C$3'
>>> sheet1.range((1,1), (3,3)).get_address(True, False, external=True)
'[Book1]Sheet1!A$1:C$3'
.. versionadded:: 0.2.3
49 insert()
kind=method class=Range objtype=function
在工作表中插入一个或一组单元格。
参数:
----------
shift : str
使用 ``right`` 或者 ``down``.
copy_origin : str, 缺省值 format_from_left_or_above
使用 ``format_from_left_or_above`` 或者 ``format_from_right_or_below``.
注意,copy_origin 只在Windows上受支持。
Returns
-------
None
.. versionchanged:: 0.30.3
``shift``现在是必选参数。
50 merge()
kind=method class=Range objtype=function
从指定的Range对象创建合并的单元格。
参数:
----------
across : bool, 缺省值 False
True将指定范围的每行中的单元格合并为单独的合并单元格。
51 offset()
kind=method class=Range objtype=function
返回一个Range对象,该对象表示与指定范围偏移的范围。
Returns
-------
Range object : Range
.. versionadded:: 0.3.0
52 options()
kind=method class=Range objtype=function
允许您设置转换器及其选项。
转换器定义在读写操作期间如何转换Excel范围及其值。
如果没有指定显式转换器,则应用的是基本转换器,请参阅:ref:`converters`。
参数
---------
``convert`` : object, 缺省值 None
A converter, 例如: ``dict``, ``np.array``, ``pd.DataFrame``, ``pd.Series``,
缺省值s to 缺省值 converter
Keyword Arguments
-----------------
ndim : int, 缺省值 None
number of dimensions
numbers : type, 缺省值 None
type of numbers, 例如: ``int``
dates : type, 缺省值 None
例如: ``datetime.date`` 缺省值s to ``datetime.datetime``
empty : object, 缺省值 None
空单元格转化。
transpose : Boolean, 缺省值 False
转置的值。
expand : str, 缺省值 None
为以下之一: ``'table'``, ``'down'``, ``'right'``
chunksize : int
使用块大小, 例如: ``10000``,以防止在读写大量数据时出现超时或内存问题。
适用于所有格式,包括 DataFrames, NumPy 数组和列表的列表。
err_to_str : Boolean, 缺省值 False
如果为 ``True``, 将包含错误信息的单元格,比如 ``#N/A`` 转为字串。缺省时,转化为 ``None``.
.. versionadded:: 0.28.0
=> 对 converter-specific 选项, 参见 :ref:`converters`.
Returns
-------
Range object
53 paste()
kind=method class=Range objtype=function
将剪贴板的范围粘贴到指定的范围。
参数:
----------
paste : str, 缺省值 None
以下之一: ``all_merging_conditional_formats``, ``all``, ``all_except_borders``,
``all_using_source_theme``, ``column_widths``, ``comments``, ``formats``,
``formulas``, ``formulas_and_number_formats``, ``validation``, ``values``,
``values_and_number_formats``.
operation : str, 缺省值 None
以下之一: "add", "divide", "multiply", "subtract".
skip_blanks : bool, 缺省值 False
如果设为 ``True`` 将跳过空单元格。
transpose : bool, 缺省值 False
如果设为 ``True`` 将转置行和列。
Returns
-------
None
54 resize()
kind=method class=Range objtype=function
调整指定的Range范围。
参数
---------
row_size: int > 0
新范围中的行数(如果为None,范围中的行数不变)。
column_size: int > 0
新范围内的列数(如果为None,范围内的列数不变)。
Returns
-------
Range object: Range
.. versionadded:: 0.3.0
55 select()
kind=method class=Range objtype=function
选择范围。只选择活动工作簿上的范围。
.. versionadded:: 0.9.0
56 to_pdf()
kind=method class=Range objtype=function
57 to_png()
kind=method class=Range objtype=function
导出范围为PNG图片。
参数:
----------
path : str 或者 path-like, 缺省值 None
图片存储路径。如果Excel文件被存储,默认为与Excel文件在同一目录的范围的名称,否则为当前工作目录。
.. versionadded:: 0.24.8
58 unmerge()
kind=method class=Range objtype=function
将合并区域分离为单个单元格。
RangeColumns, xlwings.main.RangeColumns, module=xlwings.main, line:0 at
表示范围的列。不要直接构造这个类,而是使用 :attr:`Range.columns`。
Example
-------
.. code-block:: python
import xlwings as xw
wb = xw.Book("MyFile.xlsx")
sheet1 = wb.sheets[0]
myrange = sheet1.range('A1:C4')
assert len(myrange.columns) == 3 # 或者 myrange.columns.count
myrange.columns[0].value = 'a'
assert myrange.columns[2] == sheet1.range('C1:C4')
assert myrange.columns(2) == sheet1.range('B1:B4')
for c in myrange.columns:
print(c.address)
1 count=
kind:property type:property class:
2 autofit()
kind=method class=RangeColumns objtype=function
RangeRows, xlwings.main.RangeRows, module=xlwings.main, line:0 at
表示范围的行。不要直接构造这个类,而是使用 :attr:`Range.rows`。
Example
-------
.. code-block:: python
import xlwings as xw
wb = xw.Book("MyBook.xlsx")
sheet1 = wb.sheets[0]
myrange = sheet1.range('A1:C4')
assert len(myrange.rows) == 4 # 或者 myrange.rows.count
myrange.rows[0].value = 'a'
assert myrange.rows[2] == sheet1.range('A3:C3')
assert myrange.rows(2) == sheet1.range('A2:C2')
for r in myrange.rows:
print(r.address)
1 count=
kind:property type:property class:
2 autofit()
kind=method class=RangeRows objtype=function
Shape, xlwings.main.Shape, module=xlwings.main, line:0 at
shape对象是下列集合的成员::meth:`shapes `
>>> import xlwings as xw
>>> sht = xw.books['Book1'].sheets[0]
>>> sht.shapes[0] # 或者 sht.shapes['ShapeName']
>
.. versionchanged:: 0.9.0
1 api=
kind:property type:property class:
2 characters=kind:property type:property class:
3 font=kind:property type:property class:
4 height=kind:property type:property class:
5 left=kind:property type:property class:
6 name=kind:property type:property class:
7 parent=kind:property type:property class:
8 text=kind:property type:property class:
9 top=kind:property type:property class:
10 type=kind:property type:property class:
11 width=kind:property type:property class:
12 activate()
kind=method class=Shape objtype=function
13 delete()
kind=method class=Shape objtype=function
14 scale_height()
kind=method class=Shape objtype=function
factor : float
例如,1.5将其扩展到150%
relative_to_original_size : bool, optional
如果 ``False``, 它将相对于当前高度缩放(默认值)。
对于 ``True`` 必须是一个图片或OLE对象。
scale : str, optional
下列值之一: ``scale_from_top_left`` (缺省值), ``scale_from_bottom_right``, ``scale_from_middle``
.. versionadded:: 0.19.2
15 scale_width()
kind=method class=Shape objtype=function
factor : float
例如,1.5将其扩展到150%
relative_to_original_size : bool, optional
如果 ``False``, 它将相对于当前宽度缩放(默认值)。
对于 ``True`` 必须是一个图片或OLE对象。
scale : str, optional
下列值之一: ``scale_from_top_left`` (缺省值), ``scale_from_bottom_right``, ``scale_from_middle``
.. versionadded:: 0.19.2
(上接 ### 40 xlwings.main.Shape)
Sheet, xlwings.main.Sheet, module=xlwings.main, line:0 at
sheet对象是下列集合的成员:meth:`sheets `。
>>> import xlwings as xw
>>> wb = xw.Book()
>>> wb.sheets[0]
>>> wb.sheets['Sheet1']
>>> wb.sheets.add()
.. versionchanged:: 0.9.0
1 api=
kind:property type:property class:
2 book=kind:property type:property class:
3 cells=kind:property type:property class:
4 charts=kind:property type:property class:
5 index=kind:property type:property class:
6 name=kind:property type:property class:
7 names=kind:property type:property class:
8 page_setup=kind:property type:property class:
9 pictures=kind:property type:property class:
10 shapes=kind:property type:property class:
11 tables=kind:property type:property class:
12 used_range=kind:property type:property class:
13 visible=kind:property type:property class:
14 activate()
kind=method class=Sheet objtype=function
15 autofit()
kind=method class=Sheet objtype=function
16 clear()
kind=method class=Sheet objtype=function
17 clear_contents()
kind=method class=Sheet objtype=function
18 clear_formats()
kind=method class=Sheet objtype=function
19 copy()
kind=method class=Sheet objtype=function
20 delete()
kind=method class=Sheet objtype=function
21 range()
kind=method class=Sheet objtype=function
22 render_template()
kind=method class=Sheet objtype=function
23 select()
kind=method class=Sheet objtype=function
24 to_html()
kind=method class=Sheet objtype=function
将工作表导出为HTML页面。
参数:
----------
path : str 或者 path-like, 缺省值 None
HTML文件的保存路径。默认为表名称在当前工作目录。
.. versionadded:: 0.28.1
25 to_pdf()
kind=method class=Sheet objtype=function
2 _win32patch
3 _xlwindows
4 doc
5 loader <_frozen_importlib_external.SourceFileLoader object at 0x0000000003E1FD08>
6 spec ModuleSpec(name=‘xlwings’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x0000000003E1FD08>, origin=‘…\lib\site-packages\xlwings\init.py’, submodule_search_locations=[‘…\lib\site-packages\xlwings’])
7 apps Apps([])
8 books Books([, , ])
9 engines Engines([])
10 sheets Sheets([, …, …)
os, fullname=os, file=os.py
sys, fullname=sys, file=
utils, fullname=xlwings.utils, file=xlwings\utils.py
序号 | 类别 | 数量 |
---|---|---|
4 | str | 5 |
8 | dict | 1 |
9 | module | 10 |
10 | class | 3 |
11 | function | 26 |
13 | residual | 8 |
14 | system | 8 |
16 | all | 53 |
1 ALPHABET ABCDEFGHIJKLMNOPQRSTUVWXYZ
datetime, fullname=datetime, file=datetime.py
os, fullname=os, file=os.py
re, fullname=re, file=re.py
subprocess, fullname=subprocess, file=subprocess.py
这个模块允许生成进程,连接到它们的输入/输出/错误管道,并获取它们的返回码。
有关此模块的完整描述,请参阅Python文档的 subprocess 模块。
sys, fullname=sys, file=
tempfile, fullname=tempfile, file=tempfile.py
traceback, fullname=traceback, file=traceback.py
提取、格式化和打印有关Python堆栈跟踪的信息。
uuid, fullname=uuid, file=uuid.py
UUID对象(通用唯一标识符)根据RFC 4122。
numpy, fullname=numpy, file=numpy_init_.py
参见 NumPy 模块。
xlwings, fullname=xlwings, file=xlwings_init_.py
lru_cache(maxsize=128, typed=False), module=functools, line:458 at functools.py
最近最少使用(Least-recently-used)的缓存装饰器。
如果*maxsize*设置为None,将禁用LRU特性,并且缓存可以无限制地增长。
如果*typed*为True,不同类型的参数将分别缓存。例如,f(3.0)和f(3)将被视为具有不同结果的不同调用。
缓存函数的参数必须是可哈希的。
total_ordering(cls), module=functools, line:186 at functools.py
填充缺少的排序方法的类装饰器
int_to_rgb(number), module=xlwings.utils, line:34 at site-packages\xlwings\utils.py
给定一个整数,返回rgb
rgb_to_int(rgb), module=xlwings.utils, line:43 at site-packages\xlwings\utils.py
给定rgb,返回int类型
hex_to_rgb(color), module=xlwings.utils, line:48 at site-packages\xlwings\utils.py
rgb_to_hex(r, g, b), module=xlwings.utils, line:53 at site-packages\xlwings\utils.py
get_duplicates(seq), module=xlwings.utils, line:57 at site-packages\xlwings\utils.py
np_datetime_to_datetime(np_datetime), module=xlwings.utils, line:63 at site-packages\xlwings\utils.py
xlserial_to_datetime(serial), module=xlwings.utils, line:69 at site-packages\xlwings\utils.py
将Excel的串行格式的日期(例如44197.0)转换为Python datetime对象
datetime_to_xlserial(obj), module=xlwings.utils, line:78 at site-packages\xlwings\utils.py
将Python日期或datetime对象转换为Excel的日期序列(例如44197.0)
col_name(i), module=xlwings.utils, line:97 at site-packages\xlwings\utils.py
address_to_index_tuple(address), module=xlwings.utils, line:113 at site-packages\xlwings\utils.py
基于XlsxWriter的函数,该函数根据以下BSD 2-Clause许可发布:
版权所有(c) 2013-2021, John McNamara 版权所有。
1. 在满足以下条件的情况下,允许以源代码和二进制形式进行重新分发和使用,无论修改与否。
重新发布源代码必须保留上述版权声明、此条件列表和以下免责声明。
2. 以二进制形式重新发布必须在发布时提供的文件和/或其他材料中复制上述版权声明、此条件列表和以下免责声明。
本软件由版权所有者和贡献者“按原样”提供。
任何明示或默示保证,包括但不限于对适销性和适合某一特定目的的默示保证。
在任何情况下,版权所有者或贡献者都不对任何直接、间接、附带、特殊、惩戒性或后果性损害负责(包括但不限于采购替代商品或服务;丧失使用、数据或利润;
或业务中断),无论造成何种原因,并在任何责任理论,无论是在合同,严格责任,或侵权行为(包括疏忽或其他),以任何方式使用本软件,即使被告知这种损害的可能性。
a1_to_tuples(address), module=xlwings.utils, line:158 at site-packages\xlwings\utils.py
try_parse_int(x), module=xlwings.utils, line:238 at site-packages\xlwings\utils.py
process_image(image, format, export_options), module=xlwings.utils, line:289 at site-packages\xlwings\utils.py
返回文件名和is_temp_file
fspath(path), module=xlwings.utils, line:323 at site-packages\xlwings\utils.py
将路径类对象转换为字符串。
在python <= 3.5上,input参数总是原封不动地返回(不支持类路径对象)。TODO:可以删除3.5不再支持。
read_config_sheet(book), module=xlwings.utils, line:336 at site-packages\xlwings\utils.py
read_user_config(), module=xlwings.utils, line:344 at site-packages\xlwings\utils.py
返回用户主目录下xlwings.conf的小写键
exception(logger, msg, *args), module=xlwings.utils, line:363 at site-packages\xlwings\utils.py
chunk(sequence, chunksize), module=xlwings.utils, line:371 at site-packages\xlwings\utils.py
query_yes_no(question, 缺省值=‘yes’), module=xlwings.utils, line:376 at site-packages\xlwings\utils.py
通过input()问一个是/否的问题并返回答案。
"question"是呈现给用户的字符串。
“缺省值”是假定的答案,如果用户只是点击。它必须是“yes”(默认值),“no”或None(意味着需要用户回答)。
“answer”返回值为True表示“是”,False表示“否”。
[MIT许可版权由Trent Mick](https://code.activestate.com/recipes/577058/)
prepare_sys_path(args_string), module=xlwings.utils, line:411 at site-packages\xlwings\utils.py
从Excel调用,将默认路径和PYTHONPATH设置中的路径前置到sys.path。
虽然RunPython可以使用Book.caller(),但UDF服务器不能,因为它在VBA将ActiveWorkbook推入之前运行。
udf通常也不能与book对象交互,因为Excel在函数调用期间很忙,因此不允许您读取配置表。
在0.24.9之前,这些操作是在VBA中处理的,但不能处理SharePoint。
to_pdf(obj, path=None, include=None, exclude=None, layout=None, exclude_start_string=None, show=None, quality=None), module=xlwings.utils, line:610 at site-packages\xlwings\utils.py
get_url_to_mount(), module=xlwings.utils, line:705 at site-packages\xlwings\utils.py
Windows将挂载点存储在注册表中。这有帮助,但仍不是万无一失。
search_local_sharepoint_path(url, root, sharepoint_config, sharepoint_config_name), module=xlwings.utils, line:735 at site-packages\xlwings\utils.py
excel_update_picture(picture_impl, filename), module=xlwings.utils, line:756 at site-packages\xlwings\utils.py
Path, pathlib.Path, module=pathlib, line:0 at
可以进行系统调用的PurePath子类。Path表示文件系统路径,但与PurePath不同的是,它还提供了对路径对象进行系统调用的方法。
VBAWriter, xlwings.utils.VBAWriter, module=xlwings.utils, line:0 at
1 Block=
kind:data type:type class:
2 MAX_VBA_LINE_LENGTH=1024 kind:data type:int class:
3 MAX_VBA_SPLITTED_LINE_LENGTH=1021 kind:data type:int class:
4 VBA_LINE_SPLIT= _
kind:data type:str class:
5 block()
kind=method class=VBAWriter objtype=function
6 end_block()
kind=method class=VBAWriter objtype=function
7 start_block()
kind=method class=VBAWriter objtype=function
8 write()
kind=method class=VBAWriter objtype=function
9 write_label()
kind=method class=VBAWriter objtype=function
10 write_vba_line()
kind=method class=VBAWriter objtype=function
11 writeln()
kind=method class=VBAWriter objtype=function
12 get_separator_index()
kind=class method class=VBAWriter objtype=classmethod
classmethod(function) -> method转换函数为类方法。
VersionNumber, xlwings.utils.VersionNumber, module=xlwings.utils, line:0 at
1 major=
kind:property type:property class:
2 minor=kind:property type:property class:
41 doc
42 loader <_frozen_importlib_external.SourceFileLoader object at 0x0000000003E854C8>
43 spec ModuleSpec(name=‘xlwings.utils’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x0000000003E854C8>, origin=‘…\lib\site-packages\xlwings\utils.py’)
44 mpl
45 plotly_go
46 missing
conversion, fullname=xlwings.conversion, file=xlwings\conversion_init_.py
序号 | 类别 | 数量 |
---|---|---|
4 | str | 4 |
5 | tuple | 1 |
6 | list | 1 |
8 | dict | 2 |
9 | module | 4 |
10 | class | 19 |
11 | function | 2 |
13 | residual | 4 |
14 | system | 10 |
16 | all | 37 |
1 accessors {‘range’:
, :
numpy, fullname=numpy, file=numpy_init_.py
参见:NumPy 模块。
framework, fullname=xlwings.conversion.framework, file=xlwings\conversion\framework.py
standard, fullname=xlwings.conversion.standard, file=xlwings\conversion\standard.py
numpy_conv, fullname=xlwings.conversion.numpy_conv, file=xlwings\conversion\numpy_conv.py
read(rng, value, options, engine_name=None), module=xlwings.conversion, line:73 at site-packages\xlwings\conversion_init_.py
write(value, rng, options, engine_name=None), module=xlwings.conversion, line:81 at site-packages\xlwings\conversion_init_.py
Accessor, xlwings.conversion.framework.Accessor, module=xlwings.conversion.framework, line:0 at
1 reader()
kind=class method class=Accessor objtype=classmethod
classmethod(function) -> method转换函数为类方法。
2 register()
kind=class method class=Accessor objtype=classmethod
classmethod(function) -> method转换函数为类方法。
3 router()
kind=class method class=Accessor objtype=classmethod
classmethod(function) -> method转换函数为类方法。
4 writer()
kind=class method class=Accessor objtype=classmethod
classmethod(function) -> method转换函数为类方法。
ConversionContext, xlwings.conversion.framework.ConversionContext, module=xlwings.conversion.framework, line:0 at
1 engine=
kind:data type:member_descriptor class:
2 meta=kind:data type:member_descriptor class:
3 range=kind:data type:member_descriptor class:
4 source_value=kind:data type:member_descriptor class:
5 value=kind:data type:member_descriptor class:
Converter, xlwings.conversion.framework.Converter, module=xlwings.conversion.framework, line:0 at
1 FromValueStage=
kind:data type:type class:
2 ToValueStage=kind:data type:type class:
3 base=None kind:data type:NoneType class:
4 base_type=None kind:data type:NoneType class:
5 base_reader()
kind=class method class=Converter objtype=classmethod
classmethod(function) -> method转换函数为类方法。
6 base_writer()
kind=class method class=Converter objtype=classmethod
classmethod(function) -> method转换函数为类方法。
7 reader()
kind=class method class=Converter objtype=classmethod
8 writer()
kind=class method class=Converter objtype=classmethod
Options, xlwings.conversion.framework.Options, module=xlwings.conversion.framework, line:0 at
1 缺省值s()
kind=method class=Options objtype=function
2 erase()
kind=method class=Options objtype=function
3 override()
kind=method class=Options objtype=function
Pipeline, xlwings.conversion.framework.Pipeline, module=xlwings.conversion.framework, line:0 at
1 append_stage()
kind=method class=Pipeline objtype=function
2 insert_stage()
kind=method class=Pipeline objtype=function
3 prepend_stage()
kind=method class=Pipeline objtype=function
AdjustDimensionsStage, xlwings.conversion.standard.AdjustDimensionsStage, module=xlwings.conversion.standard, line:0 at
CleanDataForWriteStage, xlwings.conversion.standard.CleanDataForWriteStage, module=xlwings.conversion.standard, line:0 at
CleanDataFromReadStage, xlwings.conversion.standard.CleanDataFromReadStage, module=xlwings.conversion.standard, line:0 at
DictConverter, xlwings.conversion.standard.DictConverter, module=xlwings.conversion.standard, line:0 at
1 base_reader()
kind=class method class=DictConverter objtype=classmethod
2 read_value()
kind=class method class=DictConverter objtype=classmethod
3 write_value()
kind=class method class=DictConverter objtype=classmethod
Ensure2DStage, xlwings.conversion.standard.Ensure2DStage, module=xlwings.conversion.standard, line:0 at
ExpandRangeStage, xlwings.conversion.standard.ExpandRangeStage, module=xlwings.conversion.standard, line:0 at
RangeAccessor, xlwings.conversion.standard.RangeAccessor, module=xlwings.conversion.standard, line:0 at
1 copy_range_to_value()
kind=static method class=RangeAccessor objtype=staticmethod
staticmethod(function) -> method将一个函数转换为静态方法。
2 reader()
kind=class method class=RangeAccessor objtype=classmethod
RawValueAccessor, xlwings.conversion.standard.RawValueAccessor, module=xlwings.conversion.standard, line:0 at
1 reader()
kind=class method class=RawValueAccessor objtype=classmethod
classmethod(function) -> method转换函数为类方法。
2 writer()
kind=class method class=RawValueAccessor objtype=classmethod
ReadValueFromRangeStage, xlwings.conversion.standard.ReadValueFromRangeStage, module=xlwings.conversion.standard, line:0 at
TransposeStage, xlwings.conversion.standard.TransposeStage, module=xlwings.conversion.standard, line:0 at
ValueAccessor, xlwings.conversion.standard.ValueAccessor, module=xlwings.conversion.standard, line:0 at
1 reader()
kind=static method class=ValueAccessor objtype=staticmethod
staticmethod(function) -> method将一个函数转换为静态方法。
2 writer()
kind=static method class=ValueAccessor objtype=staticmethod
3 router()
kind=class method class=ValueAccessor objtype=classmethod
WriteValueToRangeStage, xlwings.conversion.standard.WriteValueToRangeStage, module=xlwings.conversion.standard, line:0 at
NumpyArrayConverter, xlwings.conversion.numpy_conv.NumpyArrayConverter, module=xlwings.conversion.numpy_conv, line:0 at
1 base_reader()
kind=class method class=NumpyArrayConverter objtype=classmethod
2 read_value()
kind=class method class=NumpyArrayConverter objtype=classmethod
3 write_value()
kind=class method class=NumpyArrayConverter objtype=classmethod
LicenseError, xlwings.LicenseError, module=xlwings, line:0 at
27 doc
28 loader <_frozen_importlib_external.SourceFileLoader object at 0x0000000004BA3848>
29 spec ModuleSpec(name=‘xlwings.conversion’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x0000000004BA3848>, origin=‘…\lib\site-packages\xlwings\conversion\init.py’, submodule_search_locations=[‘…\lib\site-packages\xlwings\conversion’])
30 pd
expansion, fullname=xlwings.expansion, file=xlwings\expansion.py
序号 | 类别 | 数量 |
---|---|---|
4 | str | 4 |
5 | tuple | 1 |
8 | dict | 2 |
10 | class | 5 |
13 | residual | 3 |
14 | system | 8 |
15 | private | 1 |
16 | all | 15 |
1 _empty (None, ‘’, [[‘’]], [[None]], [(‘’,)], [(None,)])
2 expanders {‘table’:
, ‘vertical’:
Range, xlwings.main.Range, module=xlwings.main, line:0 at
返回一个Range对象,该对象表示一个单元格或一组单元格。
参数
---------
cell1 : str 或者 tuple 或者 Range
A1表示法中左上角范围的名称,或作为index-tuple或Name或xw.Range范围。它还可以使用范围操作符(冒号)指定一个范围,例如。'A1:B2'
cell2 : str 或者 tuple 或者 Range, 缺省值 None
A1表示法中右下角的范围名称,或作为index-tuple,或作为Name或xw.Range对象。
举例:
--------
.. code-block:: python
import xlwings as xw
sheet1 = xw.Book("MyBook.xlsx").sheets[0]
sheet1.range("A1")
sheet1.range("A1:C3")
sheet1.range((1,1))
sheet1.range((1,1), (3,3))
sheet1.range("NamedRange")
# Or using index/slice notation
sheet1["A1"]
sheet1["A1:C3"]
sheet1[0, 0]
sheet1[0:4, 0:4]
sheet1["NamedRange"]
1 address=
kind:property type:property class:
2 api=kind:property type:property class:
3 characters=kind:property type:property class:
4 color=kind:property type:property class:
5 column=kind:property type:property class:
6 column_width=kind:property type:property class:
7 columns=kind:property type:property class:
8 count=kind:property type:property class:
9 current_region=kind:property type:property class:
10 font=kind:property type:property class:
11 formula=kind:property type:property class:
12 formula2=kind:property type:property class:
13 formula_array=kind:property type:property class:
14 has_array=kind:property type:property class:
15 height=kind:property type:property class:
16 hyperlink=kind:property type:property class:
17 impl=kind:property type:property class:
18 last_cell=kind:property type:property class:
19 left=kind:property type:property class:
20 merge_area=kind:property type:property class:
21 merge_cells=kind:property type:property class:
22 name=kind:property type:property class:
23 note=kind:property type:property class:
24 number_format=kind:property type:property class:
25 raw_value=kind:property type:property class:
26 row=kind:property type:property class:
27 row_height=kind:property type:property class:
28 rows=kind:property type:property class:
29 shape=kind:property type:property class:
30 sheet=kind:property type:property class:
31 size=kind:property type:property class:
32 table=kind:property type:property class:
33 top=kind:property type:property class:
34 value=kind:property type:property class:
35 width=kind:property type:property class:
36 wrap_text=kind:property type:property class:
37 add_hyperlink()
kind=method class=Range objtype=function
38 autofill()
kind=method class=Range objtype=function
39 autofit()
kind=method class=Range objtype=function
40 clear()
kind=method class=Range objtype=function
41 clear_contents()
kind=method class=Range objtype=function
42 clear_formats()
kind=method class=Range objtype=function
43 copy()
kind=method class=Range objtype=function
44 copy_picture()
kind=method class=Range objtype=function
45 delete()
kind=method class=Range objtype=function
46 end()
kind=method class=Range objtype=function
47 expand()
kind=method class=Range objtype=function
48 get_address()
kind=method class=Range objtype=function
49 insert()
kind=method class=Range objtype=function
50 merge()
kind=method class=Range objtype=function
51 offset()
kind=method class=Range objtype=function
52 options()
kind=method class=Range objtype=function
53 paste()
kind=method class=Range objtype=function
54 resize()
kind=method class=Range objtype=function
55 select()
kind=method class=Range objtype=function
56 to_pdf()
kind=method class=Range objtype=function
57 to_png()
kind=method class=Range objtype=function
58 unmerge()
kind=method class=Range objtype=function
Expander, xlwings.expansion.Expander, module=xlwings.expansion, line:0 at
1 expand()
kind=method class=Expander objtype=function
2 register()
kind=method class=Expander objtype=function
TableExpander, xlwings.expansion.TableExpander, module=xlwings.expansion, line:0 at
1 expand()
kind=method class=TableExpander objtype=function
VerticalExpander, xlwings.expansion.VerticalExpander, module=xlwings.expansion, line:0 at
1 expand()
kind=method class=VerticalExpander objtype=function
HorizontalExpander, xlwings.expansion.HorizontalExpander, module=xlwings.expansion, line:0 at
1 expand()
kind=method class=HorizontalExpander objtype=function
8 _empty (None, ‘’, [[‘’]], [[None]], [(‘’,)], [(None,)])
main, fullname=xlwings.main, file=xlwings\main.py
xlwings -让Excel与Python一起飞翔!
[主页和文档](https://www.xlwings.org)
版权所有(C) 2014年至今,Zoomer Analytics GmbH。版权所有。
许可:BSD 3-clause(详见License .txt)
序号 | 类别 | 数量 |
---|---|---|
4 | str | 5 |
8 | dict | 1 |
9 | module | 10 |
10 | class | 35 |
11 | function | 3 |
13 | residual | 9 |
14 | system | 8 |
16 | all | 63 |
numbers, fullname=numbers, file=numbers.py
根据PEP 3141,数字的抽象基类(abc)。
TODO: 填写关于操作符的更详细的文档。
os, fullname=os, file=os.py
re, fullname=re, file=re.py
sys, fullname=sys, file=
warnings, fullname=warnings, file=warnings.py
xlwings, fullname=xlwings, file=xlwings_init_.py
utils, fullname=xlwings.utils, file=xlwings\utils.py
PIL, fullname=PIL, file=PIL_init_.py
[Pillow](https://github.com/python-pillow/Pillow/)是Alex Clark和contributor开发的友好的PIL Fork。
Pillow是从PIL 1.1.7分叉。PIL是Fredrik Lundh和contributor开发的Python映像库。
Copyright (c) 1999 by Secret Labs AB.
使用PIL.__version__查看本Pillow的版本。
conversion, fullname=xlwings.conversion, file=xlwings\conversion_init_.py
expansion, fullname=xlwings.expansion, file=xlwings\expansion.py
contextmanager(func), module=contextlib, line:210 at contextlib.py
@contextmanager装饰器。
典型使用:@contextmanager def some generator(): try: yield finally: 这使得:用一些generator()作为<变量>:等价于这个: try: <变量> = finally:
典型用法:
@contextmanager
def some_generator():
try:
yield
finally:
This makes this:
with some_generator() as :
equivalent to this:
try:
=
finally:
view(obj, sheet=None, table=True, chunksize=5000), module=xlwings.main, line:4669 at site-packages\xlwings\main.py
load(index=1, header=1, chunksize=5000), module=xlwings.main, line:4732 at site-packages\xlwings\main.py
Path, pathlib.Path, module=pathlib, line:0 at
LicenseError, xlwings.LicenseError, module=xlwings, line:0 at
ShapeAlreadyExists, xlwings.ShapeAlreadyExists, module=xlwings, line:0 at
XlwingsError, xlwings.XlwingsError, module=xlwings, line:0 at
Collection, xlwings.main.Collection, module=xlwings.main, line:0 at
1 api=
kind:property type:property class:
2 count=kind:property type:property class:
Engines, xlwings.main.Engines, module=xlwings.main, line:0 at
1 count=
kind:property type:property class:
2 add()
kind=method class=Engines objtype=function
Engine, xlwings.main.Engine, module=xlwings.main, line:0 at
1 apps=
kind:property type:property class:
2 name=kind:property type:property class:
3 type=kind:property type:property class:
4 activate()
kind=method class=Engine objtype=function
Apps, xlwings.main.Apps, module=xlwings.main, line:0 at
所有 :meth:`app ` 对象的集合:
>>> import xlwings as xw
>>> xw.apps
Apps([, ])
1 active=
kind:property type:property class:
2 count=kind:property type:property class:
3 add()
kind=method class=Apps objtype=function
4 cleanup()
kind=method class=Apps objtype=function
移除Excel僵尸进程(仅限windows)。
注意,这是自动调用``App.quit()`` 和 `` and ``App.kill()``。
.. versionadded:: 0.30.2
5 keys()
kind=method class=Apps objtype=function
提供在应用程序集合中作为键的Excel实例的pid
.. versionadded:: 0.13.0
App, xlwings.main.App, module=xlwings.main, line:0 at
一个应用程序对应于一个Excel实例,通常应该用作上下文管理器,以确保所有内容都被正确清理,并防止僵尸进程。(见前)
1 api=
kind:property type:property class:
2 books=kind:property type:property class:
3 calculation=kind:property type:property class:
4 cut_copy_mode=kind:property type:property class:
5 display_alerts=kind:property type:property class:
6 enable_events=kind:property type:property class:
7 engine=kind:property type:property class:
8 hwnd=kind:property type:property class:
9 interactive=kind:property type:property class:
10 path=kind:property type:property class:
11 pid=kind:property type:property class:
12 screen_updating=kind:property type:property class:
13 selection=kind:property type:property class:
14 startup_path=kind:property type:property class:
15 status_bar=kind:property type:property class:
16 version=kind:property type:property class:
17 visible=kind:property type:property class:
18 activate()
kind=method class=App objtype=function
19 alert()
kind=method class=App objtype=function
20 calculate()
kind=method class=App objtype=function
21 create_report()
kind=method class=App objtype=function
22 kill()
kind=method class=App objtype=function
23 macro()
kind=method class=App objtype=function
24 properties()
kind=method class=App objtype=function
25 quit()
kind=method class=App objtype=function
26 range()
kind=method class=App objtype=function
27 render_template()
kind=method class=App objtype=function
Book, xlwings.main.Book, module=xlwings.main, line:0 at
1 api=
kind:property type:property class:
2 app=kind:property type:property class:
3 fullname=kind:property type:property class:
4 name=kind:property type:property class:
5 names=kind:property type:property class:
6 selection=kind:property type:property class:
7 sheet_names=kind:property type:property class:
8 sheets=kind:property type:property class:
9 activate()
kind=method class=Book objtype=function
10 close()
kind=method class=Book objtype=function
11 json()
kind=method class=Book objtype=function
12 macro()
kind=method class=Book objtype=function
13 render_template()
kind=method class=Book objtype=function
14 save()
kind=method class=Book objtype=function
15 set_mock_caller()
kind=method class=Book objtype=function
16 to_pdf()
kind=method class=Book objtype=function
17 caller()
kind=class method class=Book objtype=classmethod
Sheet, xlwings.main.Sheet, module=xlwings.main, line:0 at
1 api=
kind:property type:property class:
2 book=kind:property type:property class:
3 cells=kind:property type:property class:
4 charts=kind:property type:property class:
5 index=kind:property type:property class:
6 name=kind:property type:property class:
7 names=kind:property type:property class:
8 page_setup=kind:property type:property class:
9 pictures=kind:property type:property class:
10 shapes=kind:property type:property class:
11 tables=kind:property type:property class:
12 used_range=kind:property type:property class:
13 visible=kind:property type:property class:
14 activate()
kind=method class=Sheet objtype=function
15 autofit()
kind=method class=Sheet objtype=function
16 clear()
kind=method class=Sheet objtype=function
17 clear_contents()
kind=method class=Sheet objtype=function
18 clear_formats()
kind=method class=Sheet objtype=function
19 copy()
kind=method class=Sheet objtype=function
20 delete()
kind=method class=Sheet objtype=function
21 range()
kind=method class=Sheet objtype=function
22 render_template()
kind=method class=Sheet objtype=function
23 select()
kind=method class=Sheet objtype=function
24 to_html()
kind=method class=Sheet objtype=function
25 to_pdf()
kind=method class=Sheet objtype=function
Range, xlwings.main.Range, module=xlwings.main, line:0 at
1 address=
kind:property type:property class:
2 api=kind:property type:property class:
3 characters=kind:property type:property class:
4 color=kind:property type:property class:
5 column=kind:property type:property class:
6 column_width=kind:property type:property class:
7 columns=kind:property type:property class:
8 count=kind:property type:property class:
9 current_region=kind:property type:property class:
10 font=kind:property type:property class:
11 formula=kind:property type:property class:
12 formula2=kind:property type:property class:
13 formula_array=kind:property type:property class:
14 has_array=kind:property type:property class:
15 height=kind:property type:property class:
16 hyperlink=kind:property type:property class:
17 impl=kind:property type:property class:
18 last_cell=kind:property type:property class:
19 left=kind:property type:property class:
20 merge_area=kind:property type:property class:
21 merge_cells=kind:property type:property class:
22 name=kind:property type:property class:
23 note=kind:property type:property class:
24 number_format=kind:property type:property class:
25 raw_value=kind:property type:property class:
26 row=kind:property type:property class:
27 row_height=kind:property type:property class:
28 rows=kind:property type:property class:
29 shape=kind:property type:property class:
30 sheet=kind:property type:property class:
31 size=kind:property type:property class:
32 table=kind:property type:property class:
33 top=kind:property type:property class:
34 value=kind:property type:property class:
35 width=kind:property type:property class:
36 wrap_text=kind:property type:property class:
37 add_hyperlink()
kind=method class=Range objtype=function
38 autofill()
kind=method class=Range objtype=function
39 autofit()
kind=method class=Range objtype=function
40 clear()
kind=method class=Range objtype=function
41 clear_contents()
kind=method class=Range objtype=function
42 clear_formats()
kind=method class=Range objtype=function
43 copy()
kind=method class=Range objtype=function
44 copy_picture()
kind=method class=Range objtype=function
45 delete()
kind=method class=Range objtype=function
46 end()
kind=method class=Range objtype=function
47 expand()
kind=method class=Range objtype=function
48 get_address()
kind=method class=Range objtype=function
49 insert()
kind=method class=Range objtype=function
50 merge()
kind=method class=Range objtype=function
51 offset()
kind=method class=Range objtype=function
52 options()
kind=method class=Range objtype=function
53 paste()
kind=method class=Range objtype=function
54 resize()
kind=method class=Range objtype=function
55 select()
kind=method class=Range objtype=function
56 to_pdf()
kind=method class=Range objtype=function
57 to_png()
kind=method class=Range objtype=function
58 unmerge()
kind=method class=Range objtype=function
Ranges, xlwings.main.Ranges, module=xlwings.main, line:0 at
RangeRows, xlwings.main.RangeRows, module=xlwings.main, line:0 at
1 count=
kind:property type:property class:
2 autofit()
kind=method class=RangeRows objtype=function
RangeColumns, xlwings.main.RangeColumns, module=xlwings.main, line:0 at
1 count=
kind:property type:property class:
2 autofit()
kind=method class=RangeColumns objtype=function
Shape, xlwings.main.Shape, module=xlwings.main, line:0 at
1 api=
kind:property type:property class:
2 characters=kind:property type:property class:
3 font=kind:property type:property class:
4 height=kind:property type:property class:
5 left=kind:property type:property class:
6 name=kind:property type:property class:
7 parent=kind:property type:property class:
8 text=kind:property type:property class:
9 top=kind:property type:property class:
10 type=kind:property type:property class:
11 width=kind:property type:property class:
12 activate()
kind=method class=Shape objtype=function
13 delete()
kind=method class=Shape objtype=function
14 scale_height()
kind=method class=Shape objtype=function
15 scale_width()
kind=method class=Shape objtype=function
Shapes, xlwings.main.Shapes, module=xlwings.main, line:0 at
指定表上所有:meth:'shape < shape >'对象的集合:
>>> import xlwings as xw
>>> xw.books['Book1'].sheets[0].shapes
Shapes([>,
>])
.. versionadded:: 0.9.0
PageSetup, xlwings.main.PageSetup, module=xlwings.main, line:0 at
1 api=
kind:property type:property class:
2 print_area=kind:property type:property class:
Note, xlwings.main.Note, module=xlwings.main, line:0 at
1 api=
kind:property type:property class:
2 text=kind:property type:property class:
3 delete()
kind=method class=Note objtype=function
Table, xlwings.main.Table, module=xlwings.main, line:0 at
table对象是: :meth:`tables ` 集合的成员。
>>> import xlwings as xw
>>> sht = xw.books['Book1'].sheets[0]
>>> sht.tables[0] # 或者 sht.tables['TableName']
>
.. versionadded:: 0.21.0
property
1 api= kind:property type:property class:
2 data_body_range= kind:property type:property class:
3 display_name= kind:property type:property class:
4 header_row_range= kind:property type:property class:
5 insert_row_range= kind:property type:property class:
6 name= kind:property type:property class:
7 parent= kind:property type:property class:
8 range= kind:property type:property class:
9 show_autofilter= kind:property type:property class:
10 show_headers= kind:property type:property class:
11 show_table_style_column_stripes= kind:property type:property class:
12 show_table_style_first_column= kind:property type:property class:
13 show_table_style_last_column= kind:property type:property class:
14 show_table_style_row_stripes= kind:property type:property class:
15 show_totals= kind:property type:property class:
16 table_style= kind:property type:property class:
17 totals_row_range= kind:property type:property class:
method
18 resize()
kind=method class=Table objtype=function
19 update()
kind=method class=Table objtype=function
34 xlwings.main.Tables
Tables, xlwings.main.Tables, module=xlwings.main, line:0 at
指定表上所有:meth: ' table < table > '对象的集合:
>>> import xlwings as xw
>>> xw.books['Book1'].sheets[0].tables
Tables([>,
>])
.. versionadded:: 0.21.0
method
1 add()
kind=method class=Tables objtype=function
35 xlwings.main.Chart
Chart, xlwings.main.Chart, module=xlwings.main, line:0 at
property
1 api= kind:property type:property class:
2 chart_type= kind:property type:property class:
3 height= kind:property type:property class:
4 left= kind:property type:property class:
5 name= kind:property type:property class:
6 parent= kind:property type:property class:
7 top= kind:property type:property class:
8 width= kind:property type:property class:
method
9 delete()
kind=method class=Chart objtype=function
10 set_source_data()
kind=method class=Chart objtype=function
11 to_pdf()
kind=method class=Chart objtype=function
12 to_png()
kind=method class=Chart objtype=function
36 xlwings.main.Charts
Charts, xlwings.main.Charts, module=xlwings.main, line:0 at
指定表上所有:meth:'chart < chart >'对象的集合:
>>> import xlwings as xw
>>> xw.books['Book1'].sheets[0].charts
Charts([>,
>])
.. versionadded:: 0.9.0
method
1 add()
kind=method class=Charts objtype=function
37 xlwings.main.Picture
Picture, xlwings.main.Picture, module=xlwings.main, line:0 at
property
1 api= kind:property type:property class:
2 height= kind:property type:property class:
3 left= kind:property type:property class:
4 lock_aspect_ratio= kind:property type:property class:
5 name= kind:property type:property class:
6 parent= kind:property type:property class:
7 top= kind:property type:property class:
8 width= kind:property type:property class:
method
9 delete()
kind=method class=Picture objtype=function
10 update()
kind=method class=Picture objtype=function
38 xlwings.main.Pictures
Pictures, xlwings.main.Pictures, module=xlwings.main, line:0 at
指定表上所有: meth:'picture < picture >'对象的集合:
>>> import xlwings as xw
>>> xw.books['Book1'].sheets[0].pictures
Pictures([
property
1 parent= kind:property type:property class:
method
2 add()
kind=method class=Pictures objtype=function
39 xlwings.main.Names
Names, xlwings.main.Names, module=xlwings.main, line:0 at
工作簿中所有 :meth:`name ` 对象的集合:
>>> import xlwings as xw
>>> book = xw.books['Book1'] # book scope and sheet scope
>>> book.names
[]
>>> book.sheets[0].names # sheet scope only
.. versionadded:: 0.9.0
property
1 api= kind:property type:property class:
2 count= kind:property type:property class:
method
3 add()
kind=method class=Names objtype=function
4 contains()
kind=method class=Names objtype=function
40 xlwings.main.Name
Name, xlwings.main.Name, module=xlwings.main, line:0 at
property
1 api= kind:property type:property class:
2 name= kind:property type:property class:
3 refers_to= kind:property type:property class:
4 refers_to_range= kind:property type:property class:
method
5 delete()
kind=method class=Name objtype=function
41 xlwings.main.Macro
Macro, xlwings.main.Macro, module=xlwings.main, line:0 at
method
1 run()
kind=method class=Macro objtype=function
42 xlwings.main.Characters
Characters, xlwings.main.Characters, module=xlwings.main, line:0 at
字符对象可以作为范围或形状对象的属性访问。
* ``mysheet['A1'].characters``
* ``mysheet.shapes[0].characters``
注:在macOS上,由于AppleScript中的错误/缺乏支持,``characters``目前不受支持。
.. versionadded:: 0.23.0
property
1 api= kind:property type:property class:
2 font= kind:property type:property class:
3 text= kind:property type:property class:
43 xlwings.main.Font
Font, xlwings.main.Font, module=xlwings.main, line:0 at
字体对象可以作为范围或形状对象的属性访问。
* ``mysheet['A1'].font``
* ``mysheet.shapes[0].font``
.. versionadded:: 0.23.0
property
1 api= kind:property type:property class:
2 bold= kind:property type:property class:
3 color= kind:property type:property class:
4 italic= kind:property type:property class:
5 name= kind:property type:property class:
6 size= kind:property type:property class:
44 xlwings.main.Books
Books, xlwings.main.Books, module=xlwings.main, line:0 at
所有 :meth:`book ` 对象的集合:
>>> import xlwings as xw
>>> xw.books # active app
Books([, ])
>>> xw.apps[10559].books # specific app, get the PIDs via xw.apps.keys()
Books([, ])
.. versionadded:: 0.9.0
property
1 active= kind:property type:property class:
method
2 add()
kind=method class=Books objtype=function
创建一个新的Book。新工作簿成为活动工作簿。返回一个Book对象。
3 open()
kind=method class=Books objtype=function
打开一本尚未打开的工作簿并返回它。
如果它已经打开,则不会引发异常,而是简单地返回Book对象。
参数fullname: str或类似路径的对象' ' r' c:\path\to\file.xlsx' '或' 'file.xlsm' ' '。如果没有完整路径,它将在当前工作目录中查找文件。其他参数参见::meth: ' xlwings.Book() '返回已打开的工作簿。
参数:
----------
fullname : str 或者 path-like object
文件名或完全限定的文件名。例如: ``r'C:\path\to\file.xlsx'``
或者 ``'file.xlsm'``. Without a full path, it looks for the file in the
current working directory.
Other 参数:
see: :meth:`xlwings.Book()`
Returns
-------
Book : Book that has been opened.
45 xlwings.main.Sheets
Sheets, xlwings.main.Sheets, module=xlwings.main, line:0 at
所有的集合 :meth:`sheet ` 对象:
>>> import xlwings as xw
>>> xw.sheets # active book
Sheets([, ])
>>> xw.Book('Book1').sheets # specific book
Sheets([, ])
.. versionadded:: 0.9.0
property
1 active= kind:property type:property class:
method
2 add()
kind=method class=Sheets objtype=function
创建一个新工作表并使其成为活动工作表。
参数
----------
name : str, 缺省值 None
新建工作表的名称。如果为None,将默认为Excel的默认名称。
before : Sheet, 缺省值 None
指定新工作表被添加到其前面的工作表的对象。
after : Sheet, 缺省值 None
指定添加新工作表的工作表的对象。
Returns
-------
sheet : Sheet
添加的表对象
46 xlwings.main.ActiveEngineApps
ActiveEngineApps, xlwings.main.ActiveEngineApps, module=xlwings.main, line:0 at
property
1 impl= kind:property type:property class:
47 xlwings.main.ActiveAppBooks
ActiveAppBooks, xlwings.main.ActiveAppBooks, module=xlwings.main, line:0 at
property
1 impl= kind:property type:property class:
48 xlwings.main.ActiveBookSheets
ActiveBookSheets, xlwings.main.ActiveBookSheets, module=xlwings.main, line:0 at
property
1 impl= kind:property type:property class:
剩余
49 loader <_frozen_importlib_external.SourceFileLoader object at 0x0000000003E2C1C8>
50 spec ModuleSpec(name=‘xlwings.main’, loader=<_frozen_importlib_external.SourceFileLoader object at 0x0000000003E2C1C8>, origin=‘…\lib\site-packages\xlwings\main.py’)
51 mpl
52 FigureCanvas
53 pd
54 engines Engines([])
55 apps Apps([])
56 books Books([, , ])
57 sheets Sheets([, , ])
【xlwings._win32patch】
_win32patch, fullname=xlwings._win32patch, file=xlwings_win32patch.py
统计
序号
类别
数量
4
str
5
8
dict
1
9
module
1
10
class
1
13
residual
2
14
system
8
16
all
10
常量
模块
1 pythoncom
pythoncom, fullname=pythoncom, file=pythoncom37.dll
一个模块,封装OLE自动化API
类
2 xlwings._win32patch.CoClassBaseClass
CoClassBaseClass, xlwings._win32patch.CoClassBaseClass, module=xlwings._win32patch, line:0 at
【xlwings.base_classes】
base_classes, fullname=xlwings.base_classes, file=xlwings\base_classes.py
统计
序号
类别
数量
4
str
4
8
dict
1
10
class
21
13
residual
3
14
system
8
16
all
29
常量
类
1 xlwings.base_classes.Apps
Apps, xlwings.base_classes.Apps, module=xlwings.base_classes, line:0 at
method
1 add()
kind=method class=Apps objtype=function
2 keys()
kind=method class=Apps objtype=function
static method
3 cleanup()
kind=static method class=Apps objtype=staticmethod
2 xlwings.base_classes.App
App, xlwings.base_classes.App, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 books= kind:property type:property class:
3 calculation= kind:property type:property class:
4 cut_copy_mode= kind:property type:property class:
5 display_alerts= kind:property type:property class:
6 enable_events= kind:property type:property class:
7 hwnd= kind:property type:property class:
8 interactive= kind:property type:property class:
9 path= kind:property type:property class:
10 pid= kind:property type:property class:
11 screen_updating= kind:property type:property class:
12 selection= kind:property type:property class:
13 startup_path= kind:property type:property class:
14 status_bar= kind:property type:property class:
15 version= kind:property type:property class:
16 visible= kind:property type:property class:
17 xl= kind:property type:property class:
method
18 activate()
kind=method class=App objtype=function
19 alert()
kind=method class=App objtype=function
20 calculate()
kind=method class=App objtype=function
21 kill()
kind=method class=App objtype=function
22 quit()
kind=method class=App objtype=function
23 run()
kind=method class=App objtype=function
3 xlwings.base_classes.Books
Books, xlwings.base_classes.Books, module=xlwings.base_classes, line:0 at
property
1 active= kind:property type:property class:
2 api= kind:property type:property class:
method
3 add()
kind=method class=Books objtype=function
4 open()
kind=method class=Books objtype=function
4 xlwings.base_classes.Book
Book, xlwings.base_classes.Book, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 app= kind:property type:property class:
3 fullname= kind:property type:property class:
4 name= kind:property type:property class:
5 names= kind:property type:property class:
6 sheets= kind:property type:property class:
method
7 activate()
kind=method class=Book objtype=function
8 close()
kind=method class=Book objtype=function
9 json()
kind=method class=Book objtype=function
10 save()
kind=method class=Book objtype=function
11 to_pdf()
kind=method class=Book objtype=function
5 xlwings.base_classes.Sheets
Sheets, xlwings.base_classes.Sheets, module=xlwings.base_classes, line:0 at
property
1 active= kind:property type:property class:
2 api= kind:property type:property class:
method
3 add()
kind=method class=Sheets objtype=function
6 xlwings.base_classes.Sheet
Sheet, xlwings.base_classes.Sheet, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 book= kind:property type:property class:
3 cells= kind:property type:property class:
4 charts= kind:property type:property class:
5 index= kind:property type:property class:
6 name= kind:property type:property class:
7 names= kind:property type:property class:
8 page_setup= kind:property type:property class:
9 pictures= kind:property type:property class:
10 shapes= kind:property type:property class:
11 tables= kind:property type:property class:
12 used_range= kind:property type:property class:
13 visible= kind:property type:property class:
method
14 activate()
kind=method class=Sheet objtype=function
15 autofit()
kind=method class=Sheet objtype=function
16 clear()
kind=method class=Sheet objtype=function
17 clear_contents()
kind=method class=Sheet objtype=function
18 clear_formats()
kind=method class=Sheet objtype=function
19 copy()
kind=method class=Sheet objtype=function
20 delete()
kind=method class=Sheet objtype=function
21 range()
kind=method class=Sheet objtype=function
22 select()
kind=method class=Sheet objtype=function
23 to_html()
kind=method class=Sheet objtype=function
7 xlwings.base_classes.Range
Range, xlwings.base_classes.Range, module=xlwings.base_classes, line:0 at
property
1 address= kind:property type:property class:
2 api= kind:property type:property class:
3 characters= kind:property type:property class:
4 color= kind:property type:property class:
5 column= kind:property type:property class:
6 column_width= kind:property type:property class:
7 columns= kind:property type:property class:
8 coords= kind:property type:property class:
9 current_region= kind:property type:property class:
10 font= kind:property type:property class:
11 formula= kind:property type:property class:
12 formula2= kind:property type:property class:
13 formula_array= kind:property type:property class:
14 has_array= kind:property type:property class:
15 height= kind:property type:property class:
16 hyperlink= kind:property type:property class:
17 left= kind:property type:property class:
18 merge_area= kind:property type:property class:
19 merge_cells= kind:property type:property class:
20 name= kind:property type:property class:
21 note= kind:property type:property class:
22 number_format= kind:property type:property class:
23 raw_value= kind:property type:property class:
24 row= kind:property type:property class:
25 row_height= kind:property type:property class:
26 rows= kind:property type:property class:
27 shape= kind:property type:property class:
28 table= kind:property type:property class:
29 top= kind:property type:property class:
30 width= kind:property type:property class:
31 wrap_text= kind:property type:property class:
method
32 add_hyperlink()
kind=method class=Range objtype=function
33 autofill()
kind=method class=Range objtype=function
34 autofit()
kind=method class=Range objtype=function
35 clear()
kind=method class=Range objtype=function
36 clear_contents()
kind=method class=Range objtype=function
37 clear_formats()
kind=method class=Range objtype=function
38 copy()
kind=method class=Range objtype=function
39 copy_picture()
kind=method class=Range objtype=function
40 delete()
kind=method class=Range objtype=function
41 end()
kind=method class=Range objtype=function
42 get_address()
kind=method class=Range objtype=function
43 insert()
kind=method class=Range objtype=function
44 merge()
kind=method class=Range objtype=function
45 paste()
kind=method class=Range objtype=function
46 select()
kind=method class=Range objtype=function
47 to_pdf()
kind=method class=Range objtype=function
48 to_png()
kind=method class=Range objtype=function
49 unmerge()
kind=method class=Range objtype=function
8 xlwings.base_classes.Picture
Picture, xlwings.base_classes.Picture, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 height= kind:property type:property class:
3 left= kind:property type:property class:
4 lock_aspect_ratio= kind:property type:property class:
5 name= kind:property type:property class:
6 parent= kind:property type:property class:
7 top= kind:property type:property class:
8 width= kind:property type:property class:
method
9 delete()
kind=method class=Picture objtype=function
10 index()
kind=method class=Picture objtype=function
9 xlwings.base_classes.Collection
Collection, xlwings.base_classes.Collection, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 parent= kind:property type:property class:
10 xlwings.base_classes.Pictures
Pictures, xlwings.base_classes.Pictures, module=xlwings.base_classes, line:0 at
method
1 add()
kind=method class=Pictures objtype=function
11 xlwings.base_classes.Names
Names, xlwings.base_classes.Names, module=xlwings.base_classes, line:0 at
method
1 add()
kind=method class=Names objtype=function
2 contains()
kind=method class=Names objtype=function
12 xlwings.base_classes.Name
Name, xlwings.base_classes.Name, module=xlwings.base_classes, line:0 at
property
1 name= kind:property type:property class:
2 refers_to= kind:property type:property class:
3 refers_to_range= kind:property type:property class:
method
4 delete()
kind=method class=Name objtype=function
13 xlwings.base_classes.Shape
Shape, xlwings.base_classes.Shape, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 characters= kind:property type:property class:
3 font= kind:property type:property class:
4 height= kind:property type:property class:
5 index= kind:property type:property class:
6 left= kind:property type:property class:
7 name= kind:property type:property class:
8 parent= kind:property type:property class:
9 text= kind:property type:property class:
10 top= kind:property type:property class:
11 type= kind:property type:property class:
12 width= kind:property type:property class:
method
13 activate()
kind=method class=Shape objtype=function
14 delete()
kind=method class=Shape objtype=function
15 scale_height()
kind=method class=Shape objtype=function
16 scale_width()
kind=method class=Shape objtype=function
14 xlwings.base_classes.Font
Font, xlwings.base_classes.Font, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 bold= kind:property type:property class:
3 color= kind:property type:property class:
4 italic= kind:property type:property class:
5 name= kind:property type:property class:
6 size= kind:property type:property class:
15 xlwings.base_classes.Characters
Characters, xlwings.base_classes.Characters, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 font= kind:property type:property class:
3 text= kind:property type:property class:
16 xlwings.base_classes.PageSetup
PageSetup, xlwings.base_classes.PageSetup, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 print_area= kind:property type:property class:
17 xlwings.base_classes.Note
Note, xlwings.base_classes.Note, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 text= kind:property type:property class:
method
3 delete()
kind=method class=Note objtype=function
18 xlwings.base_classes.Table
Table, xlwings.base_classes.Table, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 data_body_range= kind:property type:property class:
3 display_name= kind:property type:property class:
4 header_row_range= kind:property type:property class:
5 insert_row_range= kind:property type:property class:
6 name= kind:property type:property class:
7 parent= kind:property type:property class:
8 range= kind:property type:property class:
9 show_autofilter= kind:property type:property class:
10 show_headers= kind:property type:property class:
11 show_table_style_column_stripes= kind:property type:property class:
12 show_table_style_first_column= kind:property type:property class:
13 show_table_style_last_column= kind:property type:property class:
14 show_table_style_row_stripes= kind:property type:property class:
15 show_totals= kind:property type:property class:
16 table_style= kind:property type:property class:
17 totals_row_range= kind:property type:property class:
method
18 resize()
kind=method class=Table objtype=function
19 xlwings.base_classes.Tables
Tables, xlwings.base_classes.Tables, module=xlwings.base_classes, line:0 at
method
1 add()
kind=method class=Tables objtype=function
20 xlwings.base_classes.Chart
Chart, xlwings.base_classes.Chart, module=xlwings.base_classes, line:0 at
property
1 api= kind:property type:property class:
2 chart_type= kind:property type:property class:
3 height= kind:property type:property class:
4 left= kind:property type:property class:
5 name= kind:property type:property class:
6 parent= kind:property type:property class:
7 top= kind:property type:property class:
8 width= kind:property type:property class:
method
9 delete()
kind=method class=Chart objtype=function
10 set_source_data()
kind=method class=Chart objtype=function
11 to_pdf()
kind=method class=Chart objtype=function
12 to_png()
kind=method class=Chart objtype=function
21 xlwings.base_classes.Charts
Charts, xlwings.base_classes.Charts, module=xlwings.base_classes, line:0 at
method
1 add()
kind=method class=Charts objtype=function
【xlwings.constants】
constants, fullname=xlwings.constants, file=xlwings\constants.py
统计
序号
类别
数量
4
str
4
5
tuple
3
6
list
1
8
dict
1
9
module
1
10
class
253
11
function
1
13
residual
4
14
system
8
15
private
1
16
all
268
常量
tuple
1 calculations (‘automatic’, ‘manual’, ‘semiautomatic’)
2 chart_types (‘3d_area’, ‘3d_area_stacked’, ‘3d_area_stacked_100’, ‘3d_bar_clustered’, ‘3d_bar_stacked’, ‘3d_bar_stacked_100’, '3d_co…
3 directions (‘down’, ‘left’, ‘right’, ‘up’)
list
4 shape_types [‘auto_shape’, ‘callout’, ‘canvas’, ‘chart’, ‘comment’, ‘content_app’, ‘diagram’, ‘embedded_ole_object’, ‘form_control’,…
模块
5 re
re, fullname=re, file=re.py
函数
6 _dump_enum(cls)
_dump_enum(cls), module=xlwings.constants, line:6 at site-packages\xlwings\constants.py
类
7 xlwings.constants.AboveBelow
AboveBelow, xlwings.constants.AboveBelow, module=xlwings.constants, line:0 at
data
1 xlAboveAverage=0 kind:data type:int class:
2 xlAboveStdDev=4 kind:data type:int class:
3 xlBelowAverage=1 kind:data type:int class:
4 xlBelowStdDev=5 kind:data type:int class:
5 xlEqualAboveAverage=2 kind:data type:int class:
6 xlEqualBelowAverage=3 kind:data type:int class:
8 xlwings.constants.Constants
Constants, xlwings.constants.Constants, module=xlwings.constants, line:0 at
data
1 xl3DBar=-4099 kind:data type:int class:
2 xl3DEffects1=13 kind:data type:int class:
3 xl3DEffects2=14 kind:data type:int class:
4 xl3DSurface=-4103 kind:data type:int class:
5 xlAbove=0 kind:data type:int class:
6 xlAccounting1=4 kind:data type:int class:
7 xlAccounting2=5 kind:data type:int class:
8 xlAccounting3=6 kind:data type:int class:
9 xlAccounting4=17 kind:data type:int class:
10 xlAdd=2 kind:data type:int class:
11 xlAll=-4104 kind:data type:int class:
12 xlAllExceptBorders=7 kind:data type:int class:
13 xlAutomatic=-4105 kind:data type:int class:
14 xlBar=2 kind:data type:int class:
15 xlBelow=1 kind:data type:int class:
16 xlBidi=-5000 kind:data type:int class:
17 xlBidiCalendar=3 kind:data type:int class:
18 xlBoth=1 kind:data type:int class:
19 xlBottom=-4107 kind:data type:int class:
20 xlCascade=7 kind:data type:int class:
21 xlCenter=-4108 kind:data type:int class:
22 xlCenterAcrossSelection=7 kind:data type:int class:
23 xlChart4=2 kind:data type:int class:
24 xlChartSeries=17 kind:data type:int class:
25 xlChartShort=6 kind:data type:int class:
26 xlChartTitles=18 kind:data type:int class:
27 xlChecker=9 kind:data type:int class:
28 xlCircle=8 kind:data type:int class:
29 xlClassic1=1 kind:data type:int class:
30 xlClassic2=2 kind:data type:int class:
31 xlClassic3=3 kind:data type:int class:
32 xlClosed=3 kind:data type:int class:
33 xlColor1=7 kind:data type:int class:
34 xlColor2=8 kind:data type:int class:
35 xlColor3=9 kind:data type:int class:
36 xlColumn=3 kind:data type:int class:
37 xlCombination=-4111 kind:data type:int class:
38 xlComplete=4 kind:data type:int class:
39 xlConstants=2 kind:data type:int class:
40 xlContents=2 kind:data type:int class:
41 xlContext=-5002 kind:data type:int class:
42 xlCorner=2 kind:data type:int class:
43 xlCrissCross=16 kind:data type:int class:
44 xlCross=4 kind:data type:int class:
45 xlCustom=-4114 kind:data type:int class:
46 xlDebugCodePane=13 kind:data type:int class:
47 xl缺省值AutoFormat=-1 kind:data type:int class:
48 xlDesktop=9 kind:data type:int class:
49 xlDiamond=2 kind:data type:int class:
50 xlDirect=1 kind:data type:int class:
51 xlDistributed=-4117 kind:data type:int class:
52 xlDivide=5 kind:data type:int class:
53 xlDoubleAccounting=5 kind:data type:int class:
54 xlDoubleClosed=5 kind:data type:int class:
55 xlDoubleOpen=4 kind:data type:int class:
56 xlDoubleQuote=1 kind:data type:int class:
57 xlDrawingObject=14 kind:data type:int class:
58 xlEntireChart=20 kind:data type:int class:
59 xlExcelMenus=1 kind:data type:int class:
60 xlExtended=3 kind:data type:int class:
61 xlFill=5 kind:data type:int class:
62 xlFirst=0 kind:data type:int class:
63 xlFixedValue=1 kind:data type:int class:
64 xlFloating=5 kind:data type:int class:
65 xlFormats=-4122 kind:data type:int class:
66 xlFormula=5 kind:data type:int class:
67 xlFullScript=1 kind:data type:int class:
68 xlGeneral=1 kind:data type:int class:
69 xlGray16=17 kind:data type:int class:
70 xlGray25=-4124 kind:data type:int class:
71 xlGray50=-4125 kind:data type:int class:
72 xlGray75=-4126 kind:data type:int class:
73 xlGray8=18 kind:data type:int class:
74 xlGregorian=2 kind:data type:int class:
75 xlGrid=15 kind:data type:int class:
76 xlGridline=22 kind:data type:int class:
77 xlHigh=-4127 kind:data type:int class:
78 xlHindiNumerals=3 kind:data type:int class:
79 xlIcons=1 kind:data type:int class:
80 xlImmediatePane=12 kind:data type:int class:
81 xlInside=2 kind:data type:int class:
82 xlInteger=2 kind:data type:int class:
83 xlJustify=-4130 kind:data type:int class:
84 xlLTR=-5003 kind:data type:int class:
85 xlLast=1 kind:data type:int class:
86 xlLastCell=11 kind:data type:int class:
87 xlLatin=-5001 kind:data type:int class:
88 xlLeft=-4131 kind:data type:int class:
89 xlLeftToRight=2 kind:data type:int class:
90 xlLightDown=13 kind:data type:int class:
91 xlLightHorizontal=11 kind:data type:int class:
92 xlLightUp=14 kind:data type:int class:
93 xlLightVertical=12 kind:data type:int class:
94 xlList1=10 kind:data type:int class:
95 xlList2=11 kind:data type:int class:
96 xlList3=12 kind:data type:int class:
97 xlLocalFormat1=15 kind:data type:int class:
98 xlLocalFormat2=16 kind:data type:int class:
99 xlLogicalCursor=1 kind:data type:int class:
100 xlLong=3 kind:data type:int class:
101 xlLotusHelp=2 kind:data type:int class:
102 xlLow=-4134 kind:data type:int class:
103 xlMacrosheetCell=7 kind:data type:int class:
104 xlManual=-4135 kind:data type:int class:
105 xlMaximum=2 kind:data type:int class:
106 xlMinimum=4 kind:data type:int class:
107 xlMinusValues=3 kind:data type:int class:
108 xlMixed=2 kind:data type:int class:
109 xlMixedAuthorizedScript=4 kind:data type:int class:
110 xlMixedScript=3 kind:data type:int class:
111 xlModule=-4141 kind:data type:int class:
112 xlMultiply=4 kind:data type:int class:
113 xlNarrow=1 kind:data type:int class:
114 xlNextToAxis=4 kind:data type:int class:
115 xlNoDocuments=3 kind:data type:int class:
116 xlNone=-4142 kind:data type:int class:
117 xlNotes=-4144 kind:data type:int class:
118 xlOff=-4146 kind:data type:int class:
119 xlOn=1 kind:data type:int class:
120 xlOpaque=3 kind:data type:int class:
121 xlOpen=2 kind:data type:int class:
122 xlOutside=3 kind:data type:int class:
123 xlPartial=3 kind:data type:int class:
124 xlPartialScript=2 kind:data type:int class:
125 xlPercent=2 kind:data type:int class:
126 xlPlus=9 kind:data type:int class:
127 xlPlusValues=2 kind:data type:int class:
128 xlRTL=-5004 kind:data type:int class:
129 xlReference=4 kind:data type:int class:
130 xlRight=-4152 kind:data type:int class:
131 xlScale=3 kind:data type:int class:
132 xlSemiGray75=10 kind:data type:int class:
133 xlSemiautomatic=2 kind:data type:int class:
134 xlShort=1 kind:data type:int class:
135 xlShowLabel=4 kind:data type:int class:
136 xlShowLabelAndPercent=5 kind:data type:int class:
137 xlShowPercent=3 kind:data type:int class:
138 xlShowValue=2 kind:data type:int class:
139 xlSimple=-4154 kind:data type:int class:
140 xlSingle=2 kind:data type:int class:
141 xlSingleAccounting=4 kind:data type:int class:
142 xlSingleQuote=2 kind:data type:int class:
143 xlSolid=1 kind:data type:int class:
144 xlSquare=1 kind:data type:int class:
145 xlStError=4 kind:data type:int class:
146 xlStar=5 kind:data type:int class:
147 xlStrict=2 kind:data type:int class:
148 xlSubtract=3 kind:data type:int class:
149 xlSystem=1 kind:data type:int class:
150 xlTextBox=16 kind:data type:int class:
151 xlTiled=1 kind:data type:int class:
152 xlTitleBar=8 kind:data type:int class:
153 xlToolbar=1 kind:data type:int class:
154 xlToolbarButton=2 kind:data type:int class:
155 xlTop=-4160 kind:data type:int class:
156 xlTopToBottom=1 kind:data type:int class:
157 xlTransparent=2 kind:data type:int class:
158 xlTriangle=3 kind:data type:int class:
159 xlVeryHidden=2 kind:data type:int class:
160 xlVisible=12 kind:data type:int class:
161 xlVisualCursor=2 kind:data type:int class:
162 xlWatchPane=11 kind:data type:int class:
163 xlWide=3 kind:data type:int class:
164 xlWorkbookTab=6 kind:data type:int class:
165 xlWorksheet4=1 kind:data type:int class:
166 xlWorksheetCell=3 kind:data type:int class:
167 xlWorksheetShort=5 kind:data type:int class:
9 xlwings.constants.ActionType
ActionType, xlwings.constants.ActionType, module=xlwings.constants, line:0 at
data
1 xlActionTypeDrillthrough=256 kind:data type:int class:
2 xlActionTypeReport=128 kind:data type:int class:
3 xlActionTypeRowset=16 kind:data type:int class:
4 xlActionTypeUrl=1 kind:data type:int class:
10 xlwings.constants.Allocation
Allocation, xlwings.constants.Allocation, module=xlwings.constants, line:0 at
data
1 xlAutomaticAllocation=2 kind:data type:int class:
2 xlManualAllocation=1 kind:data type:int class:
11 xlwings.constants.AllocationMethod
AllocationMethod, xlwings.constants.AllocationMethod, module=xlwings.constants, line:0 at
data
1 xlEqualAllocation=1 kind:data type:int class:
2 xlWeightedAllocation=2 kind:data type:int class:
12 xlwings.constants.AllocationValue
AllocationValue, xlwings.constants.AllocationValue, module=xlwings.constants, line:0 at
data
1 xlAllocateIncrement=2 kind:data type:int class:
2 xlAllocateValue=1 kind:data type:int class:
13 xlwings.constants.ApplicationInternational
ApplicationInternational, xlwings.constants.ApplicationInternational, module=xlwings.constants, line:0 at
data
1 xl24HourClock=33 kind:data type:int class:
2 xl4DigitYears=43 kind:data type:int class:
3 xlAlternateArraySeparator=16 kind:data type:int class:
4 xlColumnSeparator=14 kind:data type:int class:
5 xlCountryCode=1 kind:data type:int class:
6 xlCountrySetting=2 kind:data type:int class:
7 xlCurrencyBefore=37 kind:data type:int class:
8 xlCurrencyCode=25 kind:data type:int class:
9 xlCurrencyDigits=27 kind:data type:int class:
10 xlCurrencyLeadingZeros=40 kind:data type:int class:
11 xlCurrencyMinusSign=38 kind:data type:int class:
12 xlCurrencyNegative=28 kind:data type:int class:
13 xlCurrencySpaceBefore=36 kind:data type:int class:
14 xlCurrencyTrailingZeros=39 kind:data type:int class:
15 xlDateOrder=32 kind:data type:int class:
16 xlDateSeparator=17 kind:data type:int class:
17 xlDayCode=21 kind:data type:int class:
18 xlDayLeadingZero=42 kind:data type:int class:
19 xlDecimalSeparator=3 kind:data type:int class:
20 xlGeneralFormatName=26 kind:data type:int class:
21 xlHourCode=22 kind:data type:int class:
22 xlLeftBrace=12 kind:data type:int class:
23 xlLeftBracket=10 kind:data type:int class:
24 xlListSeparator=5 kind:data type:int class:
25 xlLowerCaseColumnLetter=9 kind:data type:int class:
26 xlLowerCaseRowLetter=8 kind:data type:int class:
27 xlMDY=44 kind:data type:int class:
28 xlMetric=35 kind:data type:int class:
29 xlMinuteCode=23 kind:data type:int class:
30 xlMonthCode=20 kind:data type:int class:
31 xlMonthLeadingZero=41 kind:data type:int class:
32 xlMonthNameChars=30 kind:data type:int class:
33 xlNonEnglishFunctions=34 kind:data type:int class:
34 xlNoncurrencyDigits=29 kind:data type:int class:
35 xlRightBrace=13 kind:data type:int class:
36 xlRightBracket=11 kind:data type:int class:
37 xlRowSeparator=15 kind:data type:int class:
38 xlSecondCode=24 kind:data type:int class:
39 xlThousandsSeparator=4 kind:data type:int class:
40 xlTimeLeadingZero=45 kind:data type:int class:
41 xlTimeSeparator=18 kind:data type:int class:
42 xlUpperCaseColumnLetter=7 kind:data type:int class:
43 xlUpperCaseRowLetter=6 kind:data type:int class:
44 xlWeekdayNameChars=31 kind:data type:int class:
45 xlYearCode=19 kind:data type:int class:
14 xlwings.constants.ApplyNamesOrder
ApplyNamesOrder, xlwings.constants.ApplyNamesOrder, module=xlwings.constants, line:0 at
data
1 xlColumnThenRow=2 kind:data type:int class:
2 xlRowThenColumn=1 kind:data type:int class:
15 xlwings.constants.ArabicModes
ArabicModes, xlwings.constants.ArabicModes, module=xlwings.constants, line:0 at
data
1 xlArabicBothStrict=3 kind:data type:int class:
2 xlArabicNone=0 kind:data type:int class:
3 xlArabicStrictAlefHamza=1 kind:data type:int class:
4 xlArabicStrictFinalYaa=2 kind:data type:int class:
16 xlwings.constants.ArrangeStyle
ArrangeStyle, xlwings.constants.ArrangeStyle, module=xlwings.constants, line:0 at
data
1 xlArrangeStyleCascade=7 kind:data type:int class:
2 xlArrangeStyleHorizontal=-4128 kind:data type:int class:
3 xlArrangeStyleTiled=1 kind:data type:int class:
4 xlArrangeStyleVertical=-4166 kind:data type:int class:
17 xlwings.constants.ArrowHeadLength
ArrowHeadLength, xlwings.constants.ArrowHeadLength, module=xlwings.constants, line:0 at
data
1 xlArrowHeadLengthLong=3 kind:data type:int class:
2 xlArrowHeadLengthMedium=-4138 kind:data type:int class:
3 xlArrowHeadLengthShort=1 kind:data type:int class:
18 xlwings.constants.ArrowHeadStyle
ArrowHeadStyle, xlwings.constants.ArrowHeadStyle, module=xlwings.constants, line:0 at
data
1 xlArrowHeadStyleClosed=3 kind:data type:int class:
2 xlArrowHeadStyleDoubleClosed=5 kind:data type:int class:
3 xlArrowHeadStyleDoubleOpen=4 kind:data type:int class:
4 xlArrowHeadStyleNone=-4142 kind:data type:int class:
5 xlArrowHeadStyleOpen=2 kind:data type:int class:
19 xlwings.constants.ArrowHeadWidth
ArrowHeadWidth, xlwings.constants.ArrowHeadWidth, module=xlwings.constants, line:0 at
data
1 xlArrowHeadWidthMedium=-4138 kind:data type:int class:
2 xlArrowHeadWidthNarrow=1 kind:data type:int class:
3 xlArrowHeadWidthWide=3 kind:data type:int class:
20 xlwings.constants.AutoFillType
AutoFillType, xlwings.constants.AutoFillType, module=xlwings.constants, line:0 at
data
1 xlFillCopy=1 kind:data type:int class:
2 xlFillDays=5 kind:data type:int class:
3 xlFill缺省值=0 kind:data type:int class:
4 xlFillFormats=3 kind:data type:int class:
5 xlFillMonths=7 kind:data type:int class:
6 xlFillSeries=2 kind:data type:int class:
7 xlFillValues=4 kind:data type:int class:
8 xlFillWeekdays=6 kind:data type:int class:
9 xlFillYears=8 kind:data type:int class:
10 xlFlashFill=11 kind:data type:int class:
11 xlGrowthTrend=10 kind:data type:int class:
12 xlLinearTrend=9 kind:data type:int class:
21 xlwings.constants.AutoFilterOperator
AutoFilterOperator, xlwings.constants.AutoFilterOperator, module=xlwings.constants, line:0 at
data
1 xlAnd=1 kind:data type:int class:
2 xlBottom10Items=4 kind:data type:int class:
3 xlBottom10Percent=6 kind:data type:int class:
4 xlFilterAutomaticFontColor=13 kind:data type:int class:
5 xlFilterCellColor=8 kind:data type:int class:
6 xlFilterDynamic=11 kind:data type:int class:
7 xlFilterFontColor=9 kind:data type:int class:
8 xlFilterIcon=10 kind:data type:int class:
9 xlFilterNoFill=12 kind:data type:int class:
10 xlFilterNoIcon=14 kind:data type:int class:
11 xlFilterValues=7 kind:data type:int class:
12 xlOr=2 kind:data type:int class:
13 xlTop10Items=3 kind:data type:int class:
14 xlTop10Percent=5 kind:data type:int class:
22 xlwings.constants.AxisCrosses
AxisCrosses, xlwings.constants.AxisCrosses, module=xlwings.constants, line:0 at
data
1 xlAxisCrossesAutomatic=-4105 kind:data type:int class:
2 xlAxisCrossesCustom=-4114 kind:data type:int class:
3 xlAxisCrossesMaximum=2 kind:data type:int class:
4 xlAxisCrossesMinimum=4 kind:data type:int class:
23 xlwings.constants.AxisGroup
AxisGroup, xlwings.constants.AxisGroup, module=xlwings.constants, line:0 at
data
1 xlPrimary=1 kind:data type:int class:
2 xlSecondary=2 kind:data type:int class:
24 xlwings.constants.AxisType
AxisType, xlwings.constants.AxisType, module=xlwings.constants, line:0 at
data
1 xlCategory=1 kind:data type:int class:
2 xlSeriesAxis=3 kind:data type:int class:
3 xlValue=2 kind:data type:int class:
25 xlwings.constants.Background
Background, xlwings.constants.Background, module=xlwings.constants, line:0 at
data
1 xlBackgroundAutomatic=-4105 kind:data type:int class:
2 xlBackgroundOpaque=3 kind:data type:int class:
3 xlBackgroundTransparent=2 kind:data type:int class:
26 xlwings.constants.BarShape
BarShape, xlwings.constants.BarShape, module=xlwings.constants, line:0 at
data
1 xlBox=0 kind:data type:int class:
2 xlConeToMax=5 kind:data type:int class:
3 xlConeToPoint=4 kind:data type:int class:
4 xlCylinder=3 kind:data type:int class:
5 xlPyramidToMax=2 kind:data type:int class:
6 xlPyramidToPoint=1 kind:data type:int class:
27 xlwings.constants.BorderWeight
BorderWeight, xlwings.constants.BorderWeight, module=xlwings.constants, line:0 at
data
1 xlHairline=1 kind:data type:int class:
2 xlMedium=-4138 kind:data type:int class:
3 xlThick=4 kind:data type:int class:
4 xlThin=2 kind:data type:int class:
28 xlwings.constants.BordersIndex
BordersIndex, xlwings.constants.BordersIndex, module=xlwings.constants, line:0 at
data
1 xlDiagonalDown=5 kind:data type:int class:
2 xlDiagonalUp=6 kind:data type:int class:
3 xlEdgeBottom=9 kind:data type:int class:
4 xlEdgeLeft=7 kind:data type:int class:
5 xlEdgeRight=10 kind:data type:int class:
6 xlEdgeTop=8 kind:data type:int class:
7 xlInsideHorizontal=12 kind:data type:int class:
8 xlInsideVertical=11 kind:data type:int class:
29 xlwings.constants.BuiltInDialog
BuiltInDialog, xlwings.constants.BuiltInDialog, module=xlwings.constants, line:0 at
data
1 xlDialogActivate=103 kind:data type:int class:
2 xlDialogActiveCellFont=476 kind:data type:int class:
3 xlDialogAddChartAutoformat=390 kind:data type:int class:
4 xlDialogAddinManager=321 kind:data type:int class:
5 xlDialogAlignment=43 kind:data type:int class:
6 xlDialogAppMove=170 kind:data type:int class:
7 xlDialogAppSize=171 kind:data type:int class:
8 xlDialogApplyNames=133 kind:data type:int class:
9 xlDialogApplyStyle=212 kind:data type:int class:
10 xlDialogArrangeAll=12 kind:data type:int class:
11 xlDialogAssignToObject=213 kind:data type:int class:
12 xlDialogAssignToTool=293 kind:data type:int class:
13 xlDialogAttachText=80 kind:data type:int class:
14 xlDialogAttachToolbars=323 kind:data type:int class:
15 xlDialogAutoCorrect=485 kind:data type:int class:
16 xlDialogAxes=78 kind:data type:int class:
17 xlDialogBorder=45 kind:data type:int class:
18 xlDialogCalculation=32 kind:data type:int class:
19 xlDialogCellProtection=46 kind:data type:int class:
20 xlDialogChangeLink=166 kind:data type:int class:
21 xlDialogChartAddData=392 kind:data type:int class:
22 xlDialogChartLocation=527 kind:data type:int class:
23 xlDialogChartOptionsDataLabelMultiple=724 kind:data type:int class:
24 xlDialogChartOptionsDataLabels=505 kind:data type:int class:
25 xlDialogChartOptionsDataTable=506 kind:data type:int class:
26 xlDialogChartSourceData=540 kind:data type:int class:
27 xlDialogChartTrend=350 kind:data type:int class:
28 xlDialogChartType=526 kind:data type:int class:
29 xlDialogChartWizard=288 kind:data type:int class:
30 xlDialogCheckboxProperties=435 kind:data type:int class:
31 xlDialogClear=52 kind:data type:int class:
32 xlDialogColorPalette=161 kind:data type:int class:
33 xlDialogColumnWidth=47 kind:data type:int class:
34 xlDialogCombination=73 kind:data type:int class:
35 xlDialogConditionalFormatting=583 kind:data type:int class:
36 xlDialogConsolidate=191 kind:data type:int class:
37 xlDialogCopyChart=147 kind:data type:int class:
38 xlDialogCopyPicture=108 kind:data type:int class:
39 xlDialogCreateList=796 kind:data type:int class:
40 xlDialogCreateNames=62 kind:data type:int class:
41 xlDialogCreatePublisher=217 kind:data type:int class:
42 xlDialogCustomViews=493 kind:data type:int class:
43 xlDialogCustomizeToolbar=276 kind:data type:int class:
44 xlDialogDataDelete=36 kind:data type:int class:
45 xlDialogDataLabel=379 kind:data type:int class:
46 xlDialogDataLabelMultiple=723 kind:data type:int class:
47 xlDialogDataSeries=40 kind:data type:int class:
48 xlDialogDataValidation=525 kind:data type:int class:
49 xlDialogDefineName=61 kind:data type:int class:
50 xlDialogDefineStyle=229 kind:data type:int class:
51 xlDialogDeleteFormat=111 kind:data type:int class:
52 xlDialogDeleteName=110 kind:data type:int class:
53 xlDialogDemote=203 kind:data type:int class:
54 xlDialogDisplay=27 kind:data type:int class:
55 xlDialogDocumentInspector=862 kind:data type:int class:
56 xlDialogEditColor=223 kind:data type:int class:
57 xlDialogEditDelete=54 kind:data type:int class:
58 xlDialogEditSeries=228 kind:data type:int class:
59 xlDialogEditboxProperties=438 kind:data type:int class:
60 xlDialogEditionOptions=251 kind:data type:int class:
61 xlDialogErrorChecking=732 kind:data type:int class:
62 xlDialogErrorbarX=463 kind:data type:int class:
63 xlDialogErrorbarY=464 kind:data type:int class:
64 xlDialogEvaluateFormula=709 kind:data type:int class:
65 xlDialogExternalDataProperties=530 kind:data type:int class:
66 xlDialogExtract=35 kind:data type:int class:
67 xlDialogFileDelete=6 kind:data type:int class:
68 xlDialogFileSharing=481 kind:data type:int class:
69 xlDialogFillGroup=200 kind:data type:int class:
70 xlDialogFillWorkgroup=301 kind:data type:int class:
71 xlDialogFilter=447 kind:data type:int class:
72 xlDialogFilterAdvanced=370 kind:data type:int class:
73 xlDialogFindFile=475 kind:data type:int class:
74 xlDialogFont=26 kind:data type:int class:
75 xlDialogFontProperties=381 kind:data type:int class:
76 xlDialogFormatAuto=269 kind:data type:int class:
77 xlDialogFormatChart=465 kind:data type:int class:
78 xlDialogFormatCharttype=423 kind:data type:int class:
79 xlDialogFormatFont=150 kind:data type:int class:
80 xlDialogFormatLegend=88 kind:data type:int class:
81 xlDialogFormatMain=225 kind:data type:int class:
82 xlDialogFormatMove=128 kind:data type:int class:
83 xlDialogFormatNumber=42 kind:data type:int class:
84 xlDialogFormatOverlay=226 kind:data type:int class:
85 xlDialogFormatSize=129 kind:data type:int class:
86 xlDialogFormatText=89 kind:data type:int class:
87 xlDialogFormulaFind=64 kind:data type:int class:
88 xlDialogFormulaGoto=63 kind:data type:int class:
89 xlDialogFormulaReplace=130 kind:data type:int class:
90 xlDialogFunctionWizard=450 kind:data type:int class:
91 xlDialogGallery3dArea=193 kind:data type:int class:
92 xlDialogGallery3dBar=272 kind:data type:int class:
93 xlDialogGallery3dColumn=194 kind:data type:int class:
94 xlDialogGallery3dLine=195 kind:data type:int class:
95 xlDialogGallery3dPie=196 kind:data type:int class:
96 xlDialogGallery3dSurface=273 kind:data type:int class:
97 xlDialogGalleryArea=67 kind:data type:int class:
98 xlDialogGalleryBar=68 kind:data type:int class:
99 xlDialogGalleryColumn=69 kind:data type:int class:
100 xlDialogGalleryCustom=388 kind:data type:int class:
101 xlDialogGalleryDoughnut=344 kind:data type:int class:
102 xlDialogGalleryLine=70 kind:data type:int class:
103 xlDialogGalleryPie=71 kind:data type:int class:
104 xlDialogGalleryRadar=249 kind:data type:int class:
105 xlDialogGalleryScatter=72 kind:data type:int class:
106 xlDialogGoalSeek=198 kind:data type:int class:
107 xlDialogGridlines=76 kind:data type:int class:
108 xlDialogImportTextFile=666 kind:data type:int class:
109 xlDialogInsert=55 kind:data type:int class:
110 xlDialogInsertHyperlink=596 kind:data type:int class:
111 xlDialogInsertNameLabel=496 kind:data type:int class:
112 xlDialogInsertObject=259 kind:data type:int class:
113 xlDialogInsertPicture=342 kind:data type:int class:
114 xlDialogInsertTitle=380 kind:data type:int class:
115 xlDialogLabelProperties=436 kind:data type:int class:
116 xlDialogListboxProperties=437 kind:data type:int class:
117 xlDialogMacroOptions=382 kind:data type:int class:
118 xlDialogMailEditMailer=470 kind:data type:int class:
119 xlDialogMailLogon=339 kind:data type:int class:
120 xlDialogMailNextLetter=378 kind:data type:int class:
121 xlDialogMainChart=85 kind:data type:int class:
122 xlDialogMainChartType=185 kind:data type:int class:
123 xlDialogMenuEditor=322 kind:data type:int class:
124 xlDialogMove=262 kind:data type:int class:
125 xlDialogMyPermission=834 kind:data type:int class:
126 xlDialogNameManager=977 kind:data type:int class:
127 xlDialogNew=119 kind:data type:int class:
128 xlDialogNewName=978 kind:data type:int class:
129 xlDialogNewWebQuery=667 kind:data type:int class:
130 xlDialogNote=154 kind:data type:int class:
131 xlDialogObjectProperties=207 kind:data type:int class:
132 xlDialogObjectProtection=214 kind:data type:int class:
133 xlDialogOpen=1 kind:data type:int class:
134 xlDialogOpenLinks=2 kind:data type:int class:
135 xlDialogOpenMail=188 kind:data type:int class:
136 xlDialogOpenText=441 kind:data type:int class:
137 xlDialogOptionsCalculation=318 kind:data type:int class:
138 xlDialogOptionsChart=325 kind:data type:int class:
139 xlDialogOptionsEdit=319 kind:data type:int class:
140 xlDialogOptionsGeneral=356 kind:data type:int class:
141 xlDialogOptionsListsAdd=458 kind:data type:int class:
142 xlDialogOptionsME=647 kind:data type:int class:
143 xlDialogOptionsTransition=355 kind:data type:int class:
144 xlDialogOptionsView=320 kind:data type:int class:
145 xlDialogOutline=142 kind:data type:int class:
146 xlDialogOverlay=86 kind:data type:int class:
147 xlDialogOverlayChartType=186 kind:data type:int class:
148 xlDialogPageSetup=7 kind:data type:int class:
149 xlDialogParse=91 kind:data type:int class:
150 xlDialogPasteNames=58 kind:data type:int class:
151 xlDialogPasteSpecial=53 kind:data type:int class:
152 xlDialogPatterns=84 kind:data type:int class:
153 xlDialogPermission=832 kind:data type:int class:
154 xlDialogPhonetic=656 kind:data type:int class:
155 xlDialogPivotCalculatedField=570 kind:data type:int class:
156 xlDialogPivotCalculatedItem=572 kind:data type:int class:
157 xlDialogPivotClientServerSet=689 kind:data type:int class:
158 xlDialogPivotFieldGroup=433 kind:data type:int class:
159 xlDialogPivotFieldProperties=313 kind:data type:int class:
160 xlDialogPivotFieldUngroup=434 kind:data type:int class:
161 xlDialogPivotShowPages=421 kind:data type:int class:
162 xlDialogPivotSolveOrder=568 kind:data type:int class:
163 xlDialogPivotTableOptions=567 kind:data type:int class:
164 xlDialogPivotTableSlicerConnections=1183 kind:data type:int class:
165 xlDialogPivotTableWhatIfAnalysisSettings=1153 kind:data type:int class:
166 xlDialogPivotTableWizard=312 kind:data type:int class:
167 xlDialogPlacement=300 kind:data type:int class:
168 xlDialogPrint=8 kind:data type:int class:
169 xlDialogPrintPreview=222 kind:data type:int class:
170 xlDialogPrinterSetup=9 kind:data type:int class:
171 xlDialogPromote=202 kind:data type:int class:
172 xlDialogProperties=474 kind:data type:int class:
173 xlDialogPropertyFields=754 kind:data type:int class:
174 xlDialogProtectDocument=28 kind:data type:int class:
175 xlDialogProtectSharing=620 kind:data type:int class:
176 xlDialogPublishAsWebPage=653 kind:data type:int class:
177 xlDialogPushbuttonProperties=445 kind:data type:int class:
178 xlDialogReplaceFont=134 kind:data type:int class:
179 xlDialogRoutingSlip=336 kind:data type:int class:
180 xlDialogRowHeight=127 kind:data type:int class:
181 xlDialogRun=17 kind:data type:int class:
182 xlDialogSaveAs=5 kind:data type:int class:
183 xlDialogSaveCopyAs=456 kind:data type:int class:
184 xlDialogSaveNewObject=208 kind:data type:int class:
185 xlDialogSaveWorkbook=145 kind:data type:int class:
186 xlDialogSaveWorkspace=285 kind:data type:int class:
187 xlDialogScale=87 kind:data type:int class:
188 xlDialogScenarioAdd=307 kind:data type:int class:
189 xlDialogScenarioCells=305 kind:data type:int class:
190 xlDialogScenarioEdit=308 kind:data type:int class:
191 xlDialogScenarioMerge=473 kind:data type:int class:
192 xlDialogScenarioSummary=311 kind:data type:int class:
193 xlDialogScrollbarProperties=420 kind:data type:int class:
194 xlDialogSearch=731 kind:data type:int class:
195 xlDialogSelectSpecial=132 kind:data type:int class:
196 xlDialogSendMail=189 kind:data type:int class:
197 xlDialogSeriesAxes=460 kind:data type:int class:
198 xlDialogSeriesOptions=557 kind:data type:int class:
199 xlDialogSeriesOrder=466 kind:data type:int class:
200 xlDialogSeriesShape=504 kind:data type:int class:
201 xlDialogSeriesX=461 kind:data type:int class:
202 xlDialogSeriesY=462 kind:data type:int class:
203 xlDialogSetBackgroundPicture=509 kind:data type:int class:
204 xlDialogSetMDXEditor=1208 kind:data type:int class:
205 xlDialogSetManager=1109 kind:data type:int class:
206 xlDialogSetPrintTitles=23 kind:data type:int class:
207 xlDialogSetTupleEditorOnColumns=1108 kind:data type:int class:
208 xlDialogSetTupleEditorOnRows=1107 kind:data type:int class:
209 xlDialogSetUpdateStatus=159 kind:data type:int class:
210 xlDialogShowDetail=204 kind:data type:int class:
211 xlDialogShowToolbar=220 kind:data type:int class:
212 xlDialogSize=261 kind:data type:int class:
213 xlDialogSlicerCreation=1182 kind:data type:int class:
214 xlDialogSlicerPivotTableConnections=1184 kind:data type:int class:
215 xlDialogSlicerSettings=1179 kind:data type:int class:
216 xlDialogSort=39 kind:data type:int class:
217 xlDialogSortSpecial=192 kind:data type:int class:
218 xlDialogSparklineInsertColumn=1134 kind:data type:int class:
219 xlDialogSparklineInsertLine=1133 kind:data type:int class:
220 xlDialogSparklineInsertWinLoss=1135 kind:data type:int class:
221 xlDialogSplit=137 kind:data type:int class:
222 xlDialogStandardFont=190 kind:data type:int class:
223 xlDialogStandardWidth=472 kind:data type:int class:
224 xlDialogStyle=44 kind:data type:int class:
225 xlDialogSubscribeTo=218 kind:data type:int class:
226 xlDialogSubtotalCreate=398 kind:data type:int class:
227 xlDialogSummaryInfo=474 kind:data type:int class:
228 xlDialogTabOrder=394 kind:data type:int class:
229 xlDialogTable=41 kind:data type:int class:
230 xlDialogTextToColumns=422 kind:data type:int class:
231 xlDialogUnhide=94 kind:data type:int class:
232 xlDialogUpdateLink=201 kind:data type:int class:
233 xlDialogVbaInsertFile=328 kind:data type:int class:
234 xlDialogVbaMakeAddin=478 kind:data type:int class:
235 xlDialogVbaProcedureDefinition=330 kind:data type:int class:
236 xlDialogView3d=197 kind:data type:int class: