11 2020 档案
摘要:找到php-fpm文件 去掉request_slowlog_timeout前面的分号,并设置时间。如:request_slowlog_timeout=5表示超过5秒的 去掉slowlog前面的分号,并设置log路径。如slowlog=/usr/local/php71/log 重启PHP
阅读全文
摘要:https://www.runoob.com/python/python-reg-expressions.html re.match函数 re.match 尝试从字符串的起始位置匹配一个模式,如果不是起始位置匹配成功的话,match()就返回none。 import re print(re.matc
阅读全文
摘要:方法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("
阅读全文