摘要:
import face_recognition #官方api文档:https://face-recognition.readthedocs.io/en/latest/face_recognition.html first_image = face_recognition.load_image_fil 阅读全文
摘要:
wx.getLocation({//获取当前经纬度 type: 'wgs84', //返回可以用于wx.openLocation的经纬度,官方提示bug: iOS 6.3.30 type 参数不生效,只会返回 wgs84 类型的坐标信息 success: function (res) { wx.op 阅读全文
摘要:
settings.py MEDIA_ROOT = os.path.join(BASE_DIR, 'upload/').replace('\\', '/') # upload即为图片上传的根路径 阅读全文
摘要:
from django.urls import path,include,re_pathfrom auction.settings import MEDIA_ROOTfrom django.views.static import serve urlpatterns = [ re_path(r'^up 阅读全文
摘要:
1、firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld开机禁用 : systemctl disable firewalld开机启用 : syst 阅读全文
摘要:
1,swoole监听的端口没开 在腾讯云控制台中 配置安全组 添加入站规则 0.0.0.0/0 > tcp:9501 2, swoole 127.0.0.1修改成localhost $http = new swoole_http_server("localhost", 9501); 阅读全文
摘要:
use PhpOffice\PhpWord\PhpWord;use PhpOffice\PhpWord\IOFactory; $info = public_path().'/uploads/admin/examination/test.docx'; $phpWord = new PhpWord(); 阅读全文
摘要:
修改redis.conf文件 vim redis.conf #注释掉它,以便让外网访问 #bind 127.0.0.1 #后台进程方式启动 daemonize yes #requirepass foobared去掉注释,foobared改为自己的密码 重启redis服务 ./redis-server 阅读全文