python 获取et和excel的版本号
时间:2022-05-03 09:24:51
#-*- coding:utf-8 -*-
from win32com.client import Dispatch
if __name__ == '__main__':
app = Dispatch("et.Application")
# 小版本号
print 'app.Build:%s' % app.Build
# 大版本号
print 'app.Version:%s' % app.Version
app.Quit()
app = Dispatch("excel.Application")
# 小版本号
print 'app.Build:%s' % app.Build
# 大版本号
print 'app.Version:%s' % app.Version
app.Quit()
运行结果如下:
app.Build:6.4.0.1913
app.Version:6.0
app.Build:5612.0
app.Version:11.0
标签:python,et,excel
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
利用Axure封装视觉标准
2008-10-21 10:42:00
![](https://img.aspxhome.com/file/UploadPic/200810/21/20081021104738239s.jpg)
为什么Access数据库的精髓不在VBA之中
2008-11-28 16:45:00
Oracle数据表分区的策略
2010-07-28 12:59:00
Python入门教程(九)Python字符串介绍
2023-02-05 22:34:43
![](https://img.aspxhome.com/file/2023/8/80488_0s.png)
Python 抖音评论数据抓取分析
2023-03-22 15:30:20
![](https://img.aspxhome.com/file/2023/4/76794_0s.gif)
IE6下的CSS BUG枚举
2010-06-11 10:45:00
用Asp修改注册表
2008-01-04 12:33:00
python字符串中匹配数字的正则表达式
2023-11-19 17:36:02
CSS模块化设计—从空格谈起
2007-12-15 09:41:00
python多进程执行方法apply_async使用说明
2023-01-31 11:56:10
sql注入与转义的php函数代码
2023-07-16 11:20:15
SQL Server数据库于应用程序的关系
2010-07-26 14:21:00
python中的load、loads实现反序列化示列
2023-04-01 23:49:56
Python解释器以及PyCharm的安装教程图文详解
2021-04-09 11:56:32
![](https://img.aspxhome.com/file/2023/6/71386_0s.jpg)
python处理RSTP视频流过程解析
2023-11-22 00:54:55
python time模块时间戳 与 结构化时间详解
2021-04-09 11:06:42
![](https://img.aspxhome.com/file/2023/8/70078_0s.png)
asp如何将产生的密码记录并发送给用户?
2009-11-26 20:50:00
Python利用memory_profiler查看内存占用情况
2022-05-24 08:55:29
![](https://img.aspxhome.com/file/2023/0/81810_0s.png)
利用Python+PyQt5实现简易浏览器的实战记录
2022-10-30 23:16:26
![](https://img.aspxhome.com/file/2023/3/77853_0s.png)
python利用 pytesseract快速识别提取图片中的文字((图片识别)
2023-06-16 08:00:18
![](https://img.aspxhome.com/file/2023/1/86131_0s.webp)