会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JustInTime
一直在奔跑
博客园
首页
新随笔
联系
订阅
管理
2022年4月8日
报错ImportError: No module named _ssl
摘要: 解决方法: 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)
2021年8月12日
正则表达式
摘要: 1.查找方法 match方法(只匹配字符串开头) search方法(扫描整个字符串,找到第一个匹配) findall方法(扫描整个字符串,找到所有的匹配) 返回的是匹配的字符串 finditer方法(扫描整个字符串,找到所有的匹配,并返回一个可迭代对象) print(re.match('h', 'e
阅读全文
posted @ 2021-08-12 17:37 JustInTime
阅读(87)
评论(0)
推荐(0)
本地连接远端服务器python环境
摘要: 1.点击pycharm下的Preferences... 2.再点击Python Interpreter,再按下图操作 3.测试连接 4.选择服务器上的python环境
阅读全文
posted @ 2021-08-12 17:13 JustInTime
阅读(123)
评论(0)
推荐(0)
2021年5月27日
bug:ModuleNotFoundError: No module named ‘_ctypes‘
摘要: 解决办法: 安装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)
虚拟环境(指定某个python)、安装多版本python
摘要: 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)
xlrd的bug
摘要: 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)
解决不正常得json序列化:demjson
摘要: 可使用demjson
阅读全文
posted @ 2021-05-27 13:56 JustInTime
阅读(67)
评论(0)
推荐(0)
liunx下防火墙相关命令
摘要: 查看防火墙开放了哪些端口、协议等 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)
python调用webservice
摘要: 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)
SUSE crontab调用python报ascii编码错误
摘要: 使用网上的方法,在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)
下一页
公告