1. 修改本地hosts文件 windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts mac/linux系统的hosts文件的位置如下:/etc/hosts 2. 增加http://github.global.ssl.fastly.n ...
分类:
其他好文 时间:
2021-04-19 15:45:32
阅读次数:
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
1.用Requests发送百度请求 新建一个requests_test.py文件,输入如下内容。 import requests #请求百度网页response = requests.get("https://www.baidu.com", data=None,timeout=10)print(re ...
分类:
其他好文 时间:
2021-04-19 15:38:03
阅读次数:
0
这里我们以禁止美国地址段为例,可以根据自己的需要将us.zone改为相应国家缩写 #/bin/bash wget -O /tmp/us.zone http://www.ipdeny.com/ipblocks/data/countries/us.zone for ip in `cat /tmp/us. ...
分类:
系统相关 时间:
2021-04-19 15:10:27
阅读次数:
0
export_excel(){ this.axios.get('downExcelView/',{responseType:'blob'}).then(res=>{ var blob = new Blob([res.data], {type: 'application/vnd.openxmlform ...
分类:
其他好文 时间:
2021-04-19 15:08:07
阅读次数:
0
##Socket函数 #include <sys/types.h> #include <sys/socket.h> int socket(int domain, int type, int protocol); domain 协议族: AF_OCAL, AF_INT, AF_INET7 type S ...
分类:
其他好文 时间:
2021-04-19 15:04:18
阅读次数:
0
1.把cs文件上传至服务器 2.安装java环境 yum -y install java-1.8.0-openjdk* 3.开启服务端 ./teamserver ip 密码 ./teamserver xxx.xxx.xxx.xxx xxxxx 4.问题 出现连接超时 因为 centos 开启了防火墙 ...
分类:
其他好文 时间:
2021-04-16 12:10:45
阅读次数:
0
// 上传首页数据设置、主题js文件export function uplaodTheme(data, fileName) { var dataString = JSON.stringify(data); var blob = new Blob([dataString], {type: "text/ ...
分类:
Web程序 时间:
2021-04-16 11:57:04
阅读次数:
0
下载配置mongodb mogodb官网下载 解压到指定目录 添加环境变量(可有可无) 创建data、logs两个文件夹 创建并启动mongodb服务 创建mongodb服务 以管理员身份打开cmd输入以下指令(注意更改路径) mongod --install --dbpath E:\Tools\m ...
分类:
数据库 时间:
2021-04-16 11:55:43
阅读次数:
0
本文主要讲解两方面内容:1.redis如何存储树结构数据。2.java操作redis时选取哪种序列化器。 1. redis如何存储树结构数据 先抛出结论,树结构数据在redis中的存储形式如下: 1.1 前置条件 spring-boot-starter-data-redis(2.1.8) fastj ...
分类:
其他好文 时间:
2021-04-16 11:54:02
阅读次数:
0