会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hanzhang
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2019年10月6日
linux系统安装python3
摘要: 有些服务器的没有python3,可以用yum快速安装 yum install epel-release yum install python3 也可以下载python源码安装,不过需要先安装依赖 yum install gcc patch libffi-devel python3-devel zli
阅读全文
posted @ 2019-10-06 23:19 hanzhang
阅读(343)
评论(0)
推荐(0)
2019年8月24日
Python xlwt 模块执行出错Exception: String longer than 32767 characters
摘要: 使用Python搜集数据时用到xlwt保存到excel文件,但是数据量有点大时出现 Exception: String longer than 32767 characters 搜索类似的问题都是建议放弃excel使用csv文件,或者使用openpyxl模块可以解决问题。
阅读全文
posted @ 2019-08-24 16:53 hanzhang
阅读(6377)
评论(0)
推荐(0)
2019年8月20日
MySQL连接错误:Can't connect to MySQL server on'localhost' (10055)
摘要: 在Windows服务器上确认服务器和mysql都是正常运行,但就是连接不上。搜了一下别人的解决方案, 参考这篇https://blog.csdn.net/langren697/article/details/38422055的说法,问题就出在动态连接数上。给出的解决方案是在注册表自定义最大连接数:
阅读全文
posted @ 2019-08-20 09:06 hanzhang
阅读(3675)
评论(0)
推荐(1)
2019年6月25日
CodeIgniter问题:Unable to load the requested file: .php
摘要: 调试时出现 Unable to load the requested file: .php, 后来排查到是模板渲染的问题,view函数的参数没接收到,修改后就好了。
阅读全文
posted @ 2019-06-25 09:16 hanzhang
阅读(1408)
评论(0)
推荐(0)
2019年5月30日
练习django 访问url报错Forbidden (CSRF cookie not set.)
摘要: 解决方法是把setting中csrf那行注释掉:
阅读全文
posted @ 2019-05-30 18:34 hanzhang
阅读(599)
评论(0)
推荐(0)
manage.py migrate 报错
摘要: 第一个提示,setting里面的 STATICFILES_DIRS = ( os.path.join(BASE_DIR,'static')) 第二行的后面加','解决,这样可以被识别是tuple。 第二个提示,安装Pillow。 第三个提示,需要设置DATABASES ,default加一个 'OP
阅读全文
posted @ 2019-05-30 11:48 hanzhang
阅读(217)
评论(0)
推荐(0)
2019年5月29日
pip安装django出错 Could not install packages due to an EnvironmentError: [Errno 13]
摘要: pip install django 下载安装Django报错, 按照提示的建议改为 pip install --user django 安装完成
阅读全文
posted @ 2019-05-29 16:35 hanzhang
阅读(1021)
评论(0)
推荐(0)
利用beautifulsoup下载网页html代码中的css, js, img文件并保存
摘要: for c in elc: url = c['href'] #如果href不完整需要自己调整,下面的一样 file = url.split('/')[-1] #获取文件名 if(os.path.exists (file)==False): try: res = rqst.urlopen(url) t
阅读全文
posted @ 2019-05-29 09:30 hanzhang
阅读(1941)
评论(0)
推荐(0)
2019年2月5日
itchat库微信自动回复祝福语
摘要: 过年了,之前看到一些python文章介绍用itchat自动回复微信,我自己就写了一个。 官方文档https://itchat.readthedocs.io/zh/latest/,这个库挺简洁的,对着接口写就行了。 我的环境是win10+python3.7, 先pip install itchat 安
阅读全文
posted @ 2019-02-05 12:28 hanzhang
阅读(520)
评论(0)
推荐(0)
2019年1月28日
微软的搜索引擎挺不错的
摘要: 找了半天都找不到解决办法的问题在必应上马上就搜出来了
阅读全文
posted @ 2019-01-28 14:11 hanzhang
阅读(247)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告