摘要: 解决方法: For debian based systems: sudo apt-get install libssl-dev For CentOS and RHEL sudo yum install openssl-devel To restart the make first clean up 阅读全文
posted @ 2022-04-08 18:21 JustInTime 阅读(56) 评论(0) 推荐(0)
摘要: 1.查找方法 match方法(只匹配字符串开头) search方法(扫描整个字符串,找到第一个匹配) findall方法(扫描整个字符串,找到所有的匹配) 返回的是匹配的字符串 finditer方法(扫描整个字符串,找到所有的匹配,并返回一个可迭代对象) print(re.match('h', 'e 阅读全文
posted @ 2021-08-12 17:37 JustInTime 阅读(87) 评论(0) 推荐(0)
摘要: 1.点击pycharm下的Preferences... 2.再点击Python Interpreter,再按下图操作 3.测试连接 4.选择服务器上的python环境 阅读全文
posted @ 2021-08-12 17:13 JustInTime 阅读(123) 评论(0) 推荐(0)
摘要: 解决办法: 安装libffi #centossudo yum install libffi-devel -y#Ubuntusudo apt install libffi-dev -y 重新编译安装python (以下方法可以安装多版本python) 1.wget https://www.python 阅读全文
posted @ 2021-05-27 14:06 JustInTime 阅读(88) 评论(0) 推荐(0)
摘要: 1.指定python安装虚拟环境 mkvirtualenv cloudnet --python=/home/hx/python376/bin/python3 cloudnet为你要创建的虚拟环境的名字,--python后面是基于你本机上哪个python创建的虚拟环境 2.安装多版本python 1. 阅读全文
posted @ 2021-05-27 14:05 JustInTime 阅读(384) 评论(0) 推荐(0)
摘要: bug记录: xlrd.biffh.XLRDError: Excel xlsx file; not supported 原因是最近xlrd更新到了2.0.1版本,只支持.xls文件。所以pandas.read_excel(‘xxx.xlsx’)会报错。 可以安装旧版xlrd,在cmd中运行: pip 阅读全文
posted @ 2021-05-27 13:57 JustInTime 阅读(69) 评论(0) 推荐(0)
摘要: 可使用demjson 阅读全文
posted @ 2021-05-27 13:56 JustInTime 阅读(67) 评论(0) 推荐(0)
摘要: 查看防火墙开放了哪些端口、协议等 firewall-cmd --list-all 开放某个端口 在/etc/firewalld/zones/public.xml文件中添加<port protocol="tcp" port="开发的端口"/>一行 重启防火墙 systemctl restart fir 阅读全文
posted @ 2021-05-27 13:53 JustInTime 阅读(45) 评论(0) 推荐(0)
摘要: import requests#请求的url url = "http://127.0.0.1:8282/inmesb/service"# 请求报文 payload = """ <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns 阅读全文
posted @ 2021-05-27 13:51 JustInTime 阅读(581) 评论(0) 推荐(0)
摘要: 使用网上的方法,在crontab中加入PYTHONIOENCODING=utf-8,并没有解决。 有效解决办法: * * * * * export LANG=zh_CN.utf-8;python yourScipt.py 在调用python脚本前先export LANG变量,他修改的是crontab 阅读全文
posted @ 2021-05-27 13:46 JustInTime 阅读(94) 评论(0) 推荐(0)