Carlos Blog

青春不会荒废,热血无畏白流

第一篇 Windows下安装配置Golang

Golang

第一篇 Windows下安装配置Golang 一、安装 Go Go语言的优劣,这里就不介绍了,下面直接讲Go 的安装: Go 的官方网站:http://golang.org/ 或者:https://golang.google.cn/dl/ 国内下载地址:http://www.golangtc.com/download 或者:https://studygolang.com/dl 下载对...

Python3 yield简介

yield简介

测试 #!/usr/bin/env python # coding: utf-8 # In[5]: def func(num): for i in range(num): yield i data = func(10) for _ in func(10): print(data.__next__()) 0 1 2 3 4 5 6 7 8 9

Python3.7下测试单线程,多线程和多协成

测试单线程,多线程和多协成

测试代码如下: from concurrent import futures import grequests import requests import time nowtime=time.time() url="http://www.baidu.com" # 次数 count = 100 tasks=(grequests.get(url) for _ in range(count...

一、 julia在Windows下安装

Windows10 X64下安装julia1.0

The Julia Language Julia is a high-level, high-performance dynamic language for technical computing. The main homepage for Julia can be found at julialang.org. This is the GitHub repository of Jul...

一、Centos7安装最新Docker方法

Centos7安装最新Docker方法

#一、更新下yum yum update -y #二、使用国内镜像快速安装最新版本docker-ce: 在/etc/yum.repos.d/下新建文件docker-ce.repo 文件,这里创建国内的一个yum源 [docker-ce-stable] name=Docker CE Stable - $basearch baseurl=https://mirrors.aliyun.c...

Centos7安装erlang

Centos7安装erlang

一、安装Erlang 下载erlang安装包 wget http://erlang.org/download/otp_src_21.0.tar.gz 解压 tar -zxvf otp_src_21.0.tar.gz 创建文件夹 mkdir /usr/local/erlang 编译 # cd otp_src_21.0/ # ./configure --prefix=/usr/lo...

四、Python导入和安装包

Python导入和安装包

导出: pip freeze > pip_list.txt 安装通过文件: pip install -r pip_list.txt

关系型数据库建表原则

关系型数据库建表原则

#一、安装Docker yum install Docker

MongoDB备份以及恢复

MongoDB备份以及恢复

备份:mongodump -u togeek -p tuji2013 -h localhost –port 23456 -d telespy -o d:\ –authenticationDatabase admin 还原:mongorestore -h 192.168.17.129:27017 -d itcast_restore –dir /home/mongodump/itcast/

二、安装Twisted

安装Twisted

一、获取文件 [root@ecs-7b5c-0005 mnt]# wget https://pypi.python.org/packages/51/ec/d52f840767d96f4a68a227aad99915e11ae5c3ff40f353a3abe9c8e119b7/Twisted-18.4.0rc1.tar.bz2#md5=a6833ce0dc81142562171265d144...