- 博客(6)
- 收藏
- 关注

原创 Django 学习过程的问题
1. POST提交表单报错: RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have APPEND_SLASH set. 解决办法: 将from的action地址改为 / 结尾的就可以了 urls中的url 要与action 中的url 都带 / 结尾 后者...
2018-07-13 13:20:39
278
原创 python 3使用pickle.load() encoding报错
data=pickle.load(f,encoding='iso-8859-1')
2020-08-29 13:46:36
1589
1
原创 Python爬虫 解决requests 中文乱码问题
import requests response=requests.get(url) response.encoding = 'utf-8'
2018-08-10 09:40:59
3341
1
原创 Python爬虫之phantomjs替代
Firefox #Firefox from selenium.webdriver import Firefox from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.firefox.options import Op...
2018-08-10 09:39:56
1365
原创 Python爬虫 PyQuery爬取中文页面乱码问题
创建PyQuery对象时 写明编码集 html=PyQuery('http://www.sina.com.cn',encoding='utf-8')
2018-08-03 11:15:19
5044
1
原创 Django工程的创建
'''1.创建Django工程 (day20-第五章) (1)新建工程 (2)创建APP python manage.py startapp [app名字] (3)配置setting ↓↓↓ ''' import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_...
2018-07-13 13:20:57
189
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人