python 在windows下系统编程

1.环境配置:Python是没有自带访问windows系统API的库的,需要下载。库的名称叫pywin32,可以从网上直接下载。

以下链接地址可以下载:

http://sourceforge.net/projects/pywin32/files%2Fpywin32/   (下载适合你的Python版本)

2.库里面最重要的两个模块:win32apiwin32con。win32api顾名思义,就是用python对win32的本地api进行了封装;win32con个人理解为win32constant,即win32的常量定义.

示例:脚本与执行后的结果

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhAAAADLCAIAAACwBD0bAAAQj0lEQVR4nO2dsY7jOBJAFe6H3I9M/859wWKyQYcX3x9sssCGvcEB3ckCPZknGMATLNAbXOCgAwcTKJhAF3jWpxbJYhXFsijOeyg01BRVpGSZz5JsaTh8GQmC2DYenw4T3ITHp+PmL/d+Y9i8BwRBPD4dtx5IfxQeng6bv9z7jeHx6fj4dOAvf/m77d+tB9IfhRZe6/3+HbZ++QAAYB8gDAAAUFFJGN/qpAEAgGZBGAAAoAJhAACACqMwvk3n8/j86fjwdHj+dDyfx++qQBgAAL1jEMb4bTp8eTn+eTqdx/HbdDqPxz9Phy8v4zeEAQDQPxlhvP/5/XX69Ho+fDmdx2kehy+n0+s5Koxh59/AGtQrMPyNsty7PwAAHiTHoPc/v7/EteTh4/F4Op++TvM4nsaHj8dGjjA2GVHn47hmGgBgpxiOMH75/flwGv/179/mcTiNv/z+vBDGMHyPRck0G9PnE9dZi3H1mieVaj5rXlkzPs8//i8OBaJHBovKqZya8mGGJn/dIxUAgDIMwnj443j46/zyOh5fx+Pr+HIej6/j4a/zwx/xI4zo6D8l5BEVSSpbSgnWEVU+CEidYorO1VtE+FfIHy0BALglBmG8nM7Pn19ezuM8nj+/vJxU1zAEJSxkIC8ezsqWp7h+op/UwhDmKpNMb48w9GexEAYAbItBGOM4PX96ef78cvzv+fR1PJ7Oz59fnj+9jGP8W1IIw1oHYQBAyxiEMU3TOE6n1/Pjx+Nv/zk8fjyeXs/jOE1Ti8JQXsaYVgvDetE7dQ5KqJYqAQC4JflvSS2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5cbZFddn0gDIAOQBjuFAtj/Xg9l4TH0YO+DwgDoAMQhjvFwqgyWEcvS2RdUt0oCAOgAxCGO8XCqHINY66KrA88Djs4wgDoBoThTrEwag3W8hFGqrBuIAyADkAY7hQLo9Y1jOwRRur0VEVpIQyADkAY7hQLo8pgnb2GcQxOXnkEwgDoAIThTrEwqh9hRIWxOLyorgqOMAC6AWG4UyyM6qP28e3pqaiTnL4ohTAAOgBhuFMsDL8TRLcMjjAAugFhuFMsjGP6nNK+/iIMgD5AGO6sEUY3gTAAOgBhuFMgjPsP9/0FwgDYOwjDHasw7t7d9RoIA2DXIAx3rMLoG4QBsF8QhjsmYRAIA6BZEIY7CANhAPQBwnAHYSAMgD5AGO4gDIQB0AcIwx2EgTAA+gBhuIMwEAZAHyAMdxAGwgDoA4ThDsJAGAB9gDDcQRgIA6APEIY7CANhAPQBwnAHYSAMgD5AGO4gDIQB0AcIw53LwEcU3xR96xcQAL6DMNzZ/Kbie4+tX0AA+A7CAAAAFQgDAABUIAwAAFDxPz5n2kupzbcdAAAAAElFTkSuQmCC" alt="" />

3.Python注册表操作

通过Python操作注册表有两种方式,第一种是通过Python的内置模块 _winreg;另一种方式就是Win32 Extension For Python 
的win32api模块,但是需要进行额外的安装。
以win32api模块为例: import win32api,win32con
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAuYAAAD9CAIAAAB/dSV1AAAgAElEQVR4nO3dvY7kyJWGYV7AGHNNuoe9mIU8QabsvQM5DcgcGQK0joAer8cYoMYQUDLWKKONNMZIYwyuUVI2K+KcL078MMnIfB8QDWYkGXEY/MnTwSzmsv622tNAY2sDAADPZyFlAQAA50fKAgAAJkDKAgAAJkDKAgAAJjA0ZfltvVyun396+eF/v3z+6eVyuf67HlIWAADQZ1jKcv1t/fLL68s/394u1+tv69vl+vLPty+/vF6Hj9kAAIDn05iy/P6/f3+b3kvevl6+/PJ2ua7b6csvb29fL3lty6dl+bRsZ9rKAQDAk2hJWW5pyvblDz++vLxd3n5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7zk+vZPU3FLzmlPbh5ENrKrTPEnF+Vs8ryPhNfSz7sZtPF63i+0a0plM3zqz+PVbkYqcM2WpXUbXHz/azMO64dJWrDMYYSSe5v5viOdSn7LEO0qsssfUPIwhVmmoJ5luX7+tqkekLPt14EQpS9VHZvN1RlTVeX2L92Hz6s3bUttvkQiHpCwiNanarp3685mnxq/fHp6yRK4FOn0uLuaV5DUE4xQLJ9l6vB4dv873i1uRx9ATj15Xt6t3R/KuWVXnVUPkHJGP/IaUJVJPMvWnLJ13guL9rFOWqv11+PXEq6dq9Xhq1RBecU/1xCl2SrF/vEaL29LWz5GmdTyR8mK0TD1TIWXZTkmy4r1VTFluu9A8H26SwmQ+fykq8arKV6mqyqt8u42iniSepGeaN03HGewHb3uLyy+ZPBIvKi9y3YSuRxTWnSfyFkn8Roy+22LetcnX9YL8/rtl/S+1WOQGVmS73F6q6WfxR861+2v5eBKJ4yQ/+L3DTFSSv1UsF+1erDPCXCaPp7hWscdqNzm+RyL9o7uoof/zSooxRzpz+25SPrbfmIoTj5I7xfF0hhgOn4Z0Ql5J5LL1GFP/o+R6bgaN6ufn2V9zTY+6X3o2KrLuQ3bagdOzpyzBTHzXpjmmbx0ypD/HVjvR1JayjPqC7ah+fp79Ndf0kPul4Qpce91+yH47cHr2lIWJ6WEmHtjPxMT02BMpCxPTg0ykLEzbaXEcHhj9wNQ83TVlAQAAaEPKAgAAJkDKAgAAJkDKAgAAJkDKAi1usQMAAAA5SURBVAAAJkDKAgAAJkDKAgAAJkDKAgAAJkDKAgAAJkDKAgAAJkDKAgAAJkDKAgAAJkDKAgAAJvD/CVflR4NcVU4AAAAASUVORK5CYII=" alt="" /> 注册表操作(第一种方式)可参考:
1.http://www.cnblogs.com/JeffreySun/archive/2010/01/04/1639117.html 2.http://book.51cto.com/art/200710/58150.htm

python进阶4--pywin32的更多相关文章

  1. Python进阶:函数式编程实例(附代码)

    Python进阶:函数式编程实例(附代码) 上篇文章"几个小例子告诉你, 一行Python代码能干哪些事 -- 知乎专栏"中用到了一些列表解析.生成器.map.filter.lam ...

  2. Python进阶 - 对象,名字以及绑定

    Python进阶 - 对象,名字以及绑定 1.一切皆对象 Python哲学: Python中一切皆对象 1.1 数据模型-对象,值以及类型 对象是Python对数据的抽象.Python程序中所有的数据 ...

  3. Python进阶-继承中的MRO与super

    Python进阶-继承中的MRO与super 写在前面 如非特别说明,下文均基于Python3 摘要 本文讲述Python继承关系中如何通过super()调用"父类"方法,supe ...

  4. Python进阶 - 命名空间与作用域

    Python进阶 - 命名空间与作用域 写在前面 如非特别说明,下文均基于Python3 命名空间与作用于跟名字的绑定相关性很大,可以结合另一篇介绍Python名字.对象及其绑定的文章. 1. 命名空 ...

  5. python进阶学习笔记(一)

    python进阶部分要学习的内容: 学习目标: 1.函数式编程 1.1,什么是函数式编程 函数式编程是一种抽象计算的编程模式 不同语言的抽象层次不同: 函数式编程的特点: python支持的函数式编程 ...

  6. 【python进阶】详解元类及其应用2

    前言 在上一篇文章[python进阶]详解元类及其应用1中,我们提到了关于元类的一些前置知识,介绍了类对象,动态创建类,使用type创建类,这一节我们将继续接着上文来讲~~~ 5.使⽤type创建带有 ...

  7. 【python进阶】Garbage collection垃圾回收2

    前言 在上一篇文章[python进阶]Garbage collection垃圾回收1,我们讲述了Garbage collection(GC垃圾回收),画说Ruby与Python垃圾回收,Python中 ...

  8. Python进阶 函数式编程和面向对象编程等

    函数式编程 函数:function 函数式:functional,一种编程范式.函数式编程是一种抽象计算机的编程模式. 函数!= 函数式(如计算!=计算机) 如下是不同语言的抽象 层次不同 高阶函数: ...

  9. 【python进阶】深入理解系统进程2

    前言 在上一篇[python进阶]深入理解系统进程1中,我们讲述了多任务的一些概念,多进程的创建,fork等一些问题,这一节我们继续接着讲述系统进程的一些方法及注意点 multiprocessing ...

  10. Python进阶:如何将字符串常量转化为变量?

    前几天,我们Python猫交流学习群 里的 M 同学提了个问题.这个问题挺有意思,经初次讨论,我们认为它无解. 然而,我认为它很有价值,应该继续思考怎么解决,所以就在私密的知识星球上记录了下来. 万万 ...

随机推荐

  1. Oracle视图,序列及同义词、集合操作

    一.视图(重点) 视同的功能:一个视图其实就是封装了一个复杂的查询语句.1.创建视图的语法:CREATE VIEW 视图名称 AS 子查询 范例:创建一个包含了20部门的视图CREATE VIEW e ...

  2. 关于EJB 时间注解与oracle数据库时间格式

    EJB中Temporal是时间注解,其中TemporalType是时间注解的枚举类型其中包括 TemporalType类型,请看源码/*** Type used to indicate a speci ...

  3. 关于Condition Variable的一些思考

    可能大家都使用过condition variable(之后称cv),一些博客也对cv做了介绍,但是有的说的不完全正确,甚至有误导使用者的倾向,其实最合理的使用方式是查阅文档, 如果你英语还ok的话,h ...

  4. Java学习之System.arraycopy()方法

    java.lang.System的静态方法arraycopy()可以实现数组的复制,讲课的老师说这个方法效率比较高,如果数组有成千上万个元素,那么用这个方法,比用for语句循环快不少.System提供 ...

  5. scanf和gets的区别

    scanf和gets获取字符串时的区别  在C语言中,能构获取字符串的函数至少有两个:  1.scanf()   所在头文件:stdio.h  语法:scanf("格式控制字符串" ...

  6. c/c++:内存泄露和野指针的概念

    内存泄漏 用动态存储分配函数动态开辟的空间,在使用完毕后未释放,结果导致一直占据该内存单元.直到程序结束.即所谓内存泄漏.    注意:内存泄漏是指堆内存的泄漏. 简单的说就是申请了一块内存空间,使用 ...

  7. Deleted pointer causes undefined behaviour

    这文章是早期闲得用英文写的,删除了怪可惜的,贴出来证明自己会英文算了... Occasionally,on stackoverflow.com,I found a classic problem wh ...

  8. Codis集群的搭建

    Codis集群的搭建与使用   一.简介 Codis是一个分布式的Redis解决方案,对于上层的应用来说,连接Codis Proxy和连接原生的Redis Server没有明显的区别(不支持的命令列表 ...

  9. sim卡中的汉字存储格式

    Sim卡中的ucs2格式 Sim卡中的中文都是以ucs2格式存储的,ucs2和unicode只是字节序不同,unicode是小头在前,ucs2是大头在前. Ucs2与GB2312互换可以用VC中的Wi ...

  10. sim卡中电话本(ADN)的简要格式

    ADN的格式 ADN存放于sim卡下面3f00/7f10/6f3a,记录文件格式,其最小记录格式为14,最长为255(?),记录个数最大为255(?) 其后数14个字节是必有的,其前12个字节是电话号 ...