package mytest; public class TestInteger { public static void main(String args[]) { Integer a =127; Integer b =127; System.out.println(a==b); a=128; b ...
分类:
其他好文 时间:
2021-01-13 11:22:55
阅读次数:
0
首部 信号量 创建初始化 #include <semaphore.h> int sem_init(sem_t *sem, int pshared, unsigned int value); Link with -pthread. 入口: sem 带初始化的信号量的地址 pshared 线程-0 进程 ...
分类:
编程语言 时间:
2021-01-13 11:22:38
阅读次数:
0
Merge Sorted Array (E) 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements in ...
分类:
其他好文 时间:
2021-01-13 11:10:22
阅读次数:
0
Beego环境搭建和bee工具安装使用,以Windows环境为例。 首先,下载并安装好GO并配置好GOROOT和GOPATH环境变量(如果您是用msi包安装的go,那么这些环境变量已经设置好了)。并在Path环境变量中加入%GOPATH%\bin和%GOROOT%bin。 第二步,下载并安装好git ...
分类:
其他好文 时间:
2021-01-13 11:09:35
阅读次数:
0
需求: 1.需要往数据库插入批量数据,且数据需要随机,带有日期格式的数据。 2.查看目的接收表,存在唯一key,字段2是日期格式。其他数据可以一样。 首先需要写一个链接数据库的函数:import MySQLdb class MySql(): def __init__(self, db): self. ...
分类:
数据库 时间:
2021-01-13 10:54:27
阅读次数:
0
问题: 使用vscode 用git 拉取代码,提示:在签出前,请清理存储库工作树 解决方法: 1. 手动解决: ①git stash 先将本地修改存储起来 ②git pull 拉取远程 ③git stash pop 还原暂存内容 2. 放弃本地修改,直接覆盖 ①git reset --hard ②g ...
分类:
其他好文 时间:
2021-01-13 10:53:48
阅读次数:
0
Ubuntu16.04+window10两个系统都实现了 Ubuntu系统安装方法: 参考地址:http://ddrv.cn/a/320291 环境要求: 安装gym pip install gym 安装环境: git clone https://github.com/openai/multiage ...
分类:
其他好文 时间:
2021-01-13 10:53:15
阅读次数:
0
设置当前代理 git config http.proxy http://127.0.0.1:2334 取消当前代理 git config --unset http.proxy 取消全局代理 git config --global --unset http.proxy 设置socks5代理 git c ...
分类:
其他好文 时间:
2021-01-13 10:51:35
阅读次数:
0
1 安装依赖 ## Install dependencies sudo apt -y install build-essential checkinstall cmake pkg-config yasm sudo apt -y install git gfortran sudo apt -y ins ...
分类:
系统相关 时间:
2021-01-13 10:46:58
阅读次数:
0
问题 在项目中我写了个编译打包的脚本,会拉取gitlab上工程的代码进行编译,然后上传到产品服务器。其中有一次git pull去拉取gitlab上工程代码报错了: ssh_exchange_identification: Connection closed by remote host fatal: ...
分类:
其他好文 时间:
2021-01-13 10:39:28
阅读次数:
0