2021年5月7日

解决 no module name _sqllite3 手动卸载python并更新

摘要: yum install sqlite-devel rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps whereis python |xargs rm -frv whereis python cd /home/source wget htt 阅读全文

posted @ 2021-05-07 02:34 BionExit 阅读(62) 评论(0) 推荐(0)

2021年5月5日

python通过递归清除字典中value为特定值的key

摘要: 输入dict person = {'a': {'age': 43, 'addr': ''}, 'b': {'age': 0, 'addr': 'China', 'd': {'age': 43, 'addr': ''}}, 'c': {'age': 0, 'addr': None}} 代码 _filt 阅读全文

posted @ 2021-05-05 01:20 BionExit 阅读(389) 评论(0) 推荐(0)

2021年5月4日

python通过递归将多维字典转化为二维

摘要: 输入多维字典 person = {"male":{"name":"Shawn"}, "female":{"name":"Betty","age":[{"aaaa":123},{"bbbb":234}]},"children":{"name":{"first_name":"李", "last_name 阅读全文

posted @ 2021-05-04 21:35 BionExit 阅读(354) 评论(0) 推荐(0)

2021年2月7日

python venv flask gunicorn 部署与 pycharm 连接

摘要: 创建venv 安装virtualenv pip install virtualenv 配置venv 路径 /home/flask/venv_flask_dev ##开发环境 venv名称为 venv_flask_dev cd /home/flask/ python3 -m venv venv_fla 阅读全文

posted @ 2021-02-07 14:45 BionExit 阅读(462) 评论(0) 推荐(0)

2020年7月30日

Nagios(centos 6.5)调用NSClient++/NRPE+Powershell脚本(windows server 2008 r2)监控网络情况

摘要: 版本情况 Nagios Server 10.0.8.252 [root@network-minitor libexec]# ./check_nrpe -V NRPE Plugin for Nagios Version: 4.0.3 Client 10.0.8.253 PS C:\Program Fi 阅读全文

posted @ 2020-07-30 21:05 BionExit 阅读(283) 评论(0) 推荐(0)

2020年7月21日

Nagios 调用华为云短信平台进行报警

摘要: 1.创建 /usr/local/nagios/script/hwc_sms.py """ @author: @contact: @version: """ # -*- coding: utf-8 -*- import time import uuid import hashlib import ba 阅读全文

posted @ 2020-07-21 13:31 BionExit 阅读(217) 评论(0) 推荐(0)

2020年7月14日

Python 调用定点软件LiveBos 接口

摘要: LiveBos的WSDL模式下有通用的接口 execBizProcess(xs:string sessionId, xs:string bizProcessName, xs:string id, lbParameter[] params, lbParameter[] variables, ) 但是上 阅读全文

posted @ 2020-07-14 18:36 BionExit 阅读(315) 评论(0) 推荐(0)

Centos 6.5 Python 3.5 PIP TLS/SSL报错

摘要: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 下载python3.5源代码 sudo ./configure --enable-opt 阅读全文

posted @ 2020-07-14 17:54 BionExit 阅读(168) 评论(0) 推荐(0)

2018年6月20日

Pycharm-Git 连接 Alicode(阿里云Code)要点

摘要: 环境 Windows 10 Pycharm 2018.1 Pro Git 2.17.1.2 64 bit 准备工作 Alicode注册 1. 前往 https://code.aliyun.com/ 注册Git账户 可以直接使用淘宝账号登录,根据官网提示注册登录即可。推荐使用绑定了邮箱的淘宝账号,这样 阅读全文

posted @ 2018-06-20 10:05 BionExit 阅读(1160) 评论(0) 推荐(0)

2018年6月1日

Python Selenium Chrome Headless 爬取企查查数据

摘要: 本地配置文件 本地企业列表 CompanyList.txt,每行放置一个企业名称或统一信用代码 阅读全文

posted @ 2018-06-01 09:24 BionExit 阅读(2977) 评论(3) 推荐(0)

导航