有时候需要用int()函数转换字符串为整型,但是切记int()只能转化由纯数字组成的字符串,如下例: Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32 Type " ...
分类:
其他好文 时间:
2020-02-03 13:32:40
阅读次数:
86
一、下载证书服务器的三个软件在运维主机上。~]#wgethttps://pkg.cfssl.org/R1.2/cfssl_linux-amd64-O/usr/bin/cfssl~]#wgethttps://pkg.cfssl.org/R1.2/cfssljson_linux-amd64-O/usr/bin/cfssl-json~]#wgethttps://pkg.cfssl.org/R1.2/cf
分类:
其他好文 时间:
2020-02-03 09:54:05
阅读次数:
67
使用microsoft 官网下载的deb包安装teams时报错: 使用以下命令安装: sudo apt-key adv --fetch-keys https://packages.microsoft.com/keys/microsoft.asc sudo echo 'deb [arch=amd64] ...
分类:
系统相关 时间:
2020-02-02 21:57:58
阅读次数:
706
很多时候对于不同的平台需要编写不同的代码,可选的方式 build tag 参考格式 // +build 对于平台处理的例子 // +build linux,386 darwin,!cgo 文件后缀 参考格式 _$GOOS.go _$GOOS_$GOARCH.go 参考例子 mypkg_freebsd ...
分类:
其他好文 时间:
2020-02-02 14:16:25
阅读次数:
70
octave是类似matlab的一个科学计算工具集。需要用到积分、微分、求导的时候,需要连接python3的sympy。 windows上先安装好python3,然后pip安装Sympy。具体过程: 1、安装python3 amd64 2、设置pip源为清华源:pip config set glob ...
一、在master节点下载二进制包 https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.16.md#v1161 二、选择kubernetes-server-linux-amd64.tar.gz下载 wget https:/ ...
sudo apt-get install gnupg-curl wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_10.0.130-1_amd64. ...
分类:
其他好文 时间:
2020-01-28 12:15:46
阅读次数:
66
添加阿里的docker源,安装docker curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] h ...
分类:
系统相关 时间:
2020-01-24 18:49:48
阅读次数:
117
最近一直在折腾ubuntu,过程中遇到过一些问题,因此决定写篇文章分享一下,毕竟推广linux,人人有责。 系统版本:ubuntu-18.04.3-desktop-amd64 语言选择“English”,好处在于文件夹的命名都是英文,毕竟在控制台敲中文还是比较麻烦的,至于中文环境,后续会进行介绍。选 ...
分类:
系统相关 时间:
2020-01-23 22:50:41
阅读次数:
113