学习
CyyDonCry
这个作者很懒,什么都没留下…
展开
-
window免密远程连接Linux
window免密远程连接Linux。原创 2023-12-19 01:28:28 · 376 阅读 · 1 评论 -
Centos使用Docker部署MongoDB并远程连接
查看系统版本[root@chennybaba_test ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core)[root@chennybaba_test ~]# uname -aLinux chennybaba_test 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux查看已部.原创 2021-01-30 14:05:15 · 282 阅读 · 0 评论 -
python使用virtualenv管理项目使用的环境依赖包
一般每个项目都有自己的的依赖包环境,也会跟着项目一起上传到git代码库,就像一般我们用pycharm时使用的venv,那如果我们不用pycharm呢,这时候就可以用到virtualenv来管理eg安装virtualenv创建项目环境virtualenv env这样在项目目录里会生成一个env目录激活当前环境 source env/bin/activate这样在这个环境下安装的所有工具和依赖包就可以给这个项目专门使用了退出环境:deactivate...原创 2020-09-19 11:45:34 · 597 阅读 · 1 评论 -
Centos7.6搭建docker环境记录
系统信息:CentOS 系统的内核版本高于 3.10[root@test ~]# uname -a[root@test ~]# cat /etc/*-release更新yum包到最新[root@test ~]# yum update准备一些会用到的系统工具[root@test ~]# yum install -y yum-utils device-mapper-persistent-data lvm2设置镜像仓库,这里用阿里云的[root@test ~]# yum-config-man原创 2020-09-04 14:18:15 · 243 阅读 · 0 评论 -
Python3 中sorted() 函数对列表中的字典或元组进行排序
根据列表中字典的某个key排序:sorted(array,key=lambda x:x[“key”])eg:根据列表中元组的第几个元素排序:sorted(array,key=lambda x:x[index])eg:想必其中的奥秘和小技巧大家都从例子中看出来了吧,如果有相同数值的情况,还可以这样:eg:...原创 2020-08-19 00:02:07 · 628 阅读 · 0 评论 -
Python3 pip3查看和设置当前镜像源
查看当前源:pip config listeg:当前是清华源命令行修改源:修改前建议更新pip版本到最新,此处略eg:修改为豆瓣源常用源:阿里云http://mirrors.aliyun.com/pypi/simple/清华大学https://pypi.tuna.tsinghua.edu.cn/simple/中国科技大学https://pypi.mirrors.ustc.edu.cn/simple/中国科学技术大学http://pypi.mirrors.ustc.edu.cn原创 2020-08-18 18:16:00 · 64142 阅读 · 5 评论