在go1.11之后版本中支持go mod 管理工程文件: src目录下建立github.com目录 在github.com目录下建立project文件夹 project文件夹作为工作目录 在project目录下,执行go mod init github.com/project配置工程环境;在proj ...
分类:
其他好文 时间:
2020-12-31 12:11:43
阅读次数:
0
code from threading import Thread from multiprocessing import Process import os def work(name): print('{}的pid是'.format(name), os.getpid()) if __name__ ...
分类:
编程语言 时间:
2020-12-31 12:09:31
阅读次数:
0
Mybatis整合Spring 除了Spring、Mybatis相关的jar包以外,还需要引入整合的jar包、 项目目录结构如下图所示: 首先是Spring-framework.xml的配置文件,此配置文件主要作用是引入其他配置文件,代码如下图所示: 然后是spring-mvc的配置,主要作用是设置 ...
分类:
编程语言 时间:
2020-12-31 11:57:47
阅读次数:
0
--实现split功能的函数 ('a,b,c,d')转为记录 --说明:@aString,字符串,如“27,28,29”;@pattern,分隔标志,如“,” -- 例:select * from a where ID in (select Myvalues FROM my_split(@ID, ' ...
分类:
数据库 时间:
2020-12-31 11:43:53
阅读次数:
0
占位... from https://gobyexample.com/worker-pools package main import ( "fmt" "time" ) func worker(id int, jobs <-chan int, results chan<- int) { for j ...
分类:
其他好文 时间:
2020-12-30 10:49:19
阅读次数:
0
TCP数据包分析 https://github.com/han-guang-xue/flutter/blob/master/Network/wireshark%E6%95%B0%E6%8D%AE%E5%8C%85%E5%88%86%E6%9E%90/README.md ...
分类:
其他好文 时间:
2020-12-30 10:45:26
阅读次数:
0
DesignPartternAdapter适配器模式 定义 适配器模式(Adapter Pattern)是作为两个不兼容的接口之间的桥梁。这种类型的设计模式属于结构型模式,它结合了两个独立接口的功能。 go大牛的参考 package adapter //Target 是适配的目标接口 type Ta ...
分类:
其他好文 时间:
2020-12-30 10:41:38
阅读次数:
0
LS:list(列出目录内容) cd:change directory(改变目录) su:switch user(切换用户) rpm:redhat package manger(红帽子打包管理器) pwd:print work directory(打印当前目录,现示当前工作目录的绝对路径) ps:p ...
分类:
系统相关 时间:
2020-12-29 11:40:10
阅读次数:
0
Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*' where: '?' Matches any single character. ...
分类:
其他好文 时间:
2020-12-29 11:12:41
阅读次数:
0
linux虚拟环境的管理-python版本 用python开发项目,受版本限制,需要变更不同版本的python,以前都是直接安装python,如在ubuntu环境下 sudo apt-get install python-dev ubuntu不同版本默认安装的python3版本16.04-pytho ...
分类:
系统相关 时间:
2020-12-28 11:44:20
阅读次数:
0