上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 49 下一页
摘要: 上篇用的ta跟xa。这次试试tcc client package main import ( "context" "flag" "fmt" "net/http" "time" "github.com/parnurzeal/gorequest" "github.com/seata/seata-go/p 阅读全文
posted @ 2024-04-26 13:40 朝阳1 阅读(68) 评论(0) 推荐(0)
摘要: docker安装seata version: '3' services: seata-server: image: seataio/seata-server:latest ports: - "8091:8091" - "7091:7091" environment: - SEATA_PORT=809 阅读全文
posted @ 2024-04-26 10:27 朝阳1 阅读(267) 评论(0) 推荐(0)
摘要: 使用 array_map() 应用函数到数组的每个元素。 $numbers = [1, 2, 3, 4, 5]; $squares = array_map(function($number) { return $number * $number; }, $numbers); // $squares 阅读全文
posted @ 2024-04-25 11:21 朝阳1 阅读(22) 评论(0) 推荐(0)
摘要: 创建表空间 CREATE TABLESPACE my_tablespace DATAFILE 'path_to_datafile/dbf/my_tablespace.dbf' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE 500M LOGGING ONLINE P 阅读全文
posted @ 2024-04-25 10:37 朝阳1 阅读(101) 评论(0) 推荐(0)
摘要: package main import "fmt" type ListNode struct { Val int Next *ListNode } func reverseList(head *ListNode) *ListNode { if head == nil || head.Next == 阅读全文
posted @ 2024-04-25 09:03 朝阳1 阅读(9) 评论(0) 推荐(0)
摘要: 只是demo,生产环境要防止粘包。可以作为多进程之间通讯。。。。 server package main import ( "fmt" "net" "os" "os/signal" "sync" "syscall" ) // 客户端连接结构 type Client struct { Conn *ne 阅读全文
posted @ 2024-04-24 10:23 朝阳1 阅读(120) 评论(0) 推荐(0)
摘要: 先去opencv官网下载人脸识别的训练集 https://opencv.org/releases/ 解压目录要记录 主要使用 haarcascade_frontalface_default.xml 摄像头录入人脸(可选)可以弄一个文件夹,里面放一堆图片 import cv2 face_name = 阅读全文
posted @ 2024-04-24 09:43 朝阳1 阅读(222) 评论(0) 推荐(0)
摘要: 条件变量是基于互斥锁的,它必须基于互斥锁才能发挥作用,条件变量的初始化离不开互斥锁,并且它的方法有点也是基于互斥锁的 // 使当前goroutine进入阻塞状态,等待其他goroutine唤醒 func (c *Cond) Wait() {} // 唤醒一个等待该条件变量的goroutine,如果没 阅读全文
posted @ 2024-04-23 15:59 朝阳1 阅读(41) 评论(0) 推荐(0)
摘要: from langchain.document_loaders import OnlinePDFLoader from langchain.vectorstores import Chroma from langchain.embeddings import GPT4AllEmbeddings fr 阅读全文
posted @ 2024-04-23 15:25 朝阳1 阅读(838) 评论(0) 推荐(0)
摘要: var express = require('express'); var expressWs = require('express-ws'); var app = express(); expressWs(app); var PORT = 7777; var clientObject = {}; 阅读全文
posted @ 2024-04-23 10:32 朝阳1 阅读(59) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 49 下一页