11 2020 档案

摘要:找到php-fpm文件 去掉request_slowlog_timeout前面的分号,并设置时间。如:request_slowlog_timeout=5表示超过5秒的 去掉slowlog前面的分号,并设置log路径。如slowlog=/usr/local/php71/log 重启PHP 阅读全文
posted @ 2020-11-30 15:25 Microtiger 阅读(183) 评论(0) 推荐(0) 编辑
摘要:https://www.runoob.com/python/python-reg-expressions.html re.match函数 re.match 尝试从字符串的起始位置匹配一个模式,如果不是起始位置匹配成功的话,match()就返回none。 import re print(re.matc 阅读全文
posted @ 2020-11-14 15:06 Microtiger 阅读(132) 评论(0) 推荐(0) 编辑
摘要:方法1:使用r.content,得到的是bytes型,再转为str url='http://music.baidu.com' r = requests.get(url) html=r.content html_doc=str(html,'utf-8') #html_doc=html.decode(" 阅读全文
posted @ 2020-11-09 13:43 Microtiger 阅读(367) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示