随笔分类 - 那些坑
摘要: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
阅读全文
摘要:1、先关闭phpstudy的apache服务 2、在cmd命令行中,进入phpstudy/apache/bin目录 cd C:\phpStudy\PHPTutorial\Apache\bin 3、执行如下命令。apache2.4是服务名,可以自定义 httpd.exe -k install -n a
阅读全文

浙公网安备 33010602011771号