python 引用模块、函数中属性的提取

python 引用模块、函数中属性的提取

因为需要在引用模块、函数时,经常不知道有哪些属性,因为找到一些方法,一起分享

from openpyxl.chart import BarChart3D,BarChart,Reference
chart=BarChart()

for key,chdir in enumerate(dir(chart)):
	print(key,chdir)

0 add
1 attrs
2 class
3 copy
4 delattr
5 dict
6 dir
7 doc
8 elements
9 eq
10 format
11 ge
12 getattribute
13 gt
14 hash
15 iadd
16 init
17 init_subclass
18 iter
19 le
20 lt
21 module
22 namespaced
23 ne
24 nested
25 new
26 reduce
27 reduce_ex
28 repr
29 setattr
30 sizeof
31 str
32 subclasshook
33 weakref
34 _axes
35 _charts
36 _id
37 _path
38 _series_type
39 _write
40 add_data
41 anchor
42 append
43 axId
44 barDir
45 dLbls
46 dataLabels
47 display_blanks
48 extLst
49 from_tree
50 gapWidth
51 graphical_properties
52 grouping
53 height
54 idx_base
55 layout
56 legend
57 mime_type
58 namespace
59 overlap
60 path
61 pivotFormats
62 pivotSource
63 plot_area
64 roundedCorners
65 ser
66 serLines
67 series
68 set_categories
69 style
70 tagname
71 title
72 to_tree
73 type
74 varyColors
75 visible_cells_only
76 width
77 x_axis
78 y_axis

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值