摘要: import random import gradio as gr def chat(message, history): history = history or [] message = message.lower() if message.startswith("how many"): res 阅读全文
posted @ 2023-08-29 12:10 yangxl-dev 阅读(59) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang='zh-CN'><head><title>README.md · yangxl/py-hcl-web - Gitee.com</title><meta content='on' http-equiv='x-dns-prefetch-control' 阅读全文
posted @ 2023-04-23 17:27 yangxl-dev 阅读(63) 评论(0) 推荐(0)
摘要: import randomfrom string import lowerchangdi_list=[]def get_changdi(): path = "changdi.txt" txt = open(path, "r") #txt = open(path, "r", encoding="utf 阅读全文
posted @ 2023-04-11 14:37 yangxl-dev 阅读(18) 评论(0) 推荐(0)
摘要: package mainimport ( "bufio" "encoding/binary" "fmt" "net" "os" "unsafe")func SHandleError(err error, when string) { if err != nil{ if when == "conn.R 阅读全文
posted @ 2022-10-21 12:48 yangxl-dev 阅读(56) 评论(0) 推荐(0)
摘要: import osimport globimport shutilitems = os.listdir(os.getcwd())for item in items: if os.path.isdir(item): if item in glob.glob('aaaa*') : print(item) 阅读全文
posted @ 2021-12-30 13:29 yangxl-dev 阅读(235) 评论(0) 推荐(0)
摘要: package main import ( "bufio" "encoding/binary" "fmt" "net" "os" "unsafe") func SHandleError(err error, when string) { if err != nil{ fmt.Println("服务端 阅读全文
posted @ 2021-12-20 14:43 yangxl-dev 阅读(173) 评论(0) 推荐(0)
摘要: 1、完成C++编译 dll的举例 2、完成C++ dll 转 C dll 的方法,使用go转换 3、go调用C dll 的方法 完成输出 https://www.cnblogs.com/dfsxh/p/10305072.html 阅读全文
posted @ 2021-10-22 18:15 yangxl-dev 阅读(81) 评论(0) 推荐(0)
摘要: 方法一COPY两个*.so文件至上一层,并且为了使得g++编译器能识别两个*.so,要加上"lib"前缀:libthostmduserapi.so libthosttraderapi.so$ export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH$ g++ testMdA 阅读全文
posted @ 2021-06-12 10:03 yangxl-dev 阅读(720) 评论(0) 推荐(0)
摘要: 配置Docker加速器,将会提升在国内获取Docker官方镜像的速度,否则后面下载镜像的过程会很慢,甚至有可能无法下载镜像 配置阿里云加速器 参考教程 sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "reg 阅读全文
posted @ 2021-05-08 10:44 yangxl-dev 阅读(305) 评论(0) 推荐(0)
摘要: 太久的centos7 镜像,6年以前的东西了,内核还是3.10 ,最新都5.10了 1、 增加导入 elrepo,红帽的 企业版linux源 ELRepo 仓库是基于社区的用于企业级 Linux 仓库,提供对 RedHat Enterprise (RHEL) 和 其他基于 RHEL的 Linux 发 阅读全文
posted @ 2021-05-08 09:52 yangxl-dev 阅读(373) 评论(0) 推荐(0)