随笔分类 -  那些坑

摘要:1、手动将response设置为utf-8编码 response=requests.get(url) response.encoding='utf-8' page_text=response.text 2、将字符串先进行iso-8859-1编码,再进行gbk解码 str=str.encode('is 阅读全文
posted @ 2020-09-19 20:45 vvan9 阅读(2623) 评论(1) 推荐(2)
摘要:1、先关闭phpstudy的apache服务 2、在cmd命令行中,进入phpstudy/apache/bin目录 cd C:\phpStudy\PHPTutorial\Apache\bin 3、执行如下命令。apache2.4是服务名,可以自定义 httpd.exe -k install -n a 阅读全文
posted @ 2020-03-14 00:18 vvan9 阅读(1428) 评论(0) 推荐(0)