环境:Centos7 + Python3.8.0 使用python包: ```python pip3 list python-ldap 3.3.1 ``` 示例中使用的参数: 域控ip、域、密码: 192.168.1.1 ,”bj.…
python使用ssh连接到linux服务器执行命令
#### 环境 Win10+Python3使用SSH连接centos7多次执行 删除ocserv用户的命令 1.存储用户名的文件 del_vpn_user.txt,每行一个 ```shell cat del_vpn_user.txt zhangsan…
pywinauto遍历展示程序的所有菜单项
Python 自动化-pywinauto遍历展示程序的所有菜单项,菜单栏menu_select()操作方法的使用 [转发](https://blog.csdn.net/qq_38161040/article/details/109055340 "转发"…
python3数据类型转换
#### python3 列表转 元组 list2 = [2,w] `tuple2 = tuple(list2)` #### python3 元组转 字典 tuple2 = ((2, "w"),(3, "e")) `dict2 = dict(tu…
Python3使用串口
![](/media/202110/usb转串口线_1634693280.png) 环境:Win10、Python3.7 安装包名:pyserial `pip3 insatll pyserial` 引用包变为:serial `import ser…