1.下载stack 官网下载即可 2.setup 修改~/.stack/config.ymal文件 配置如下: setup-info-locations: - "http://mirrors.tuna.tsinghua.edu.cn/stackage/stack-setup.yaml" urls: ...
分类:
其他好文 时间:
2021-04-20 14:11:05
阅读次数:
0
goconvery基本使用 (1.)项目地址 https://github.com/smartystreets/goconvery (2.)安装 go get -u github.com/smartystreets/goconvery/convery (3.)启动UI界面 $GOPATH/bin/g ...
分类:
其他好文 时间:
2021-04-20 14:09:28
阅读次数:
0
Pyinstaller原理详解 什么是Pyinstaller Pyinstaller可以把Python程序打包成exe文件,可以在没有Python的电脑上运行,主要用于生产用。 Python.h! 在讲原理之前,我们讲一下python.h这个东东。 众所周知,Python是用C语言编写的,内部各种复 ...
分类:
其他好文 时间:
2021-04-20 14:07:38
阅读次数:
0
Centos8.3-NIS NIS-Server 安装nis相关的软件包 dnf -y install ypserv rpcbind 修改主机名 hostnamectl set-hostname node1.skills.com 设置nis域 ypdomainname skills.com echo ...
分类:
其他好文 时间:
2021-04-20 14:04:05
阅读次数:
0
转自: https://zhuanlan.zhihu.com/p/151853503 在Windows 10升级到2004版本以后,自带的Windows subsystem for linux也可以升级至第二代也就是wsl2,它的轻量和不低的性能,使得它成为虚拟机的有力替代品,可以在不安装linux ...
分类:
其他好文 时间:
2021-04-19 15:54:04
阅读次数:
0
Jenkins基于https的k8s配置 登录jenkins,点击 Manage Jenkins --> Manage Plugins --> 可选插件 在搜索框中,输入关键字 kubernetes 选择安装完成后重启Jenkins 重新登录后,点击 Manage Jenkins --> Confi ...
分类:
Web程序 时间:
2021-04-19 15:49:18
阅读次数:
0
Python自带的random库 函数名称函数功能 random.randint(n,m) 产生n-m间的一个随机数 random.random() 产生0-1间的浮点数 random.uniform(1.1,5.4) 产生n-m间的浮点数 random.randrange(n,m,k) 产生n-m ...
分类:
编程语言 时间:
2021-04-19 15:47:15
阅读次数:
0
技巧一:字典排序 在python的中,字典里的元素(键值对)是没有排列顺序的,因此想要对字典里的元素进行排序的想法是错误的。但如果我们想要按键或值的顺序查看键值对,可以使用sorted函数进行排序,再将结果打印出来即可。 d = {'刘一':22, '陈二':20, '张三':15, '李四':19 ...
分类:
编程语言 时间:
2021-04-19 15:39:07
阅读次数:
0
Panda模块读取txt文本文件 使用pandas.read_csv函数 1. 如果txt文本中有表头(标题行) import panda as pd data = pd.read_csv('data.txt') print(data) 2. 如果txt文本中无表头 import panda as ...
分类:
编程语言 时间:
2021-04-19 15:38:55
阅读次数:
0
每隔 0.5 秒输出当前 .git 目录的文件 watch -n .5 "tree .git" 需要安装 watch 和 tree 命令, brew install watch brew install tree ...
分类:
系统相关 时间:
2021-04-19 15:36:48
阅读次数:
0