使用namedtuple方法可以代替手动生成一个类 # Why Python is Great: Namedtuples # Using namedtuple is way shorter than # defining a class manually: >>> from collections ...
分类:
编程语言 时间:
2021-02-16 12:02:48
阅读次数:
0
基础 axios.get('/user?ID=12345') .then(function (response) { // 成功 console.log(response); }) .catch(function (error) { // 失败 console.log(error); }) .the ...
分类:
移动开发 时间:
2021-02-15 12:39:12
阅读次数:
0
1、打开centos的yum文件夹 cd /etc/yum.repos.d/ 2、用wget下载repo文件 wget http://mirrors.aliyun.com/repo/Centos-7.repo 如果wget命令不生效,说明还没有安装wget工具, yum -y install wge ...
分类:
其他好文 时间:
2021-02-15 12:37:24
阅读次数:
0
需要引入geopy库 pip install geopy 安装即可 import requests from bs4 import BeautifulSoup import pandas as pd import json import os from tqdm import tqdm from c ...
分类:
编程语言 时间:
2021-02-15 12:35:11
阅读次数:
0
centos6 yum install git yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm yum update git centos7 yum ...
分类:
其他好文 时间:
2021-02-15 12:32:55
阅读次数:
0
服务器下安装nginx sudo apt-get install nginx nginx的文件配置 服务地址:/etc/init.d/nginx 配置地址:/etc/nginx/ 如:/etc/nginx/nginx.conf Web默认目录:/usr/share/nginx/http/ 如:usr ...
分类:
其他好文 时间:
2021-02-15 12:10:22
阅读次数:
0
flask版本0.12.5 运行时会报以上错误,原因是因为werkzeug的版本大于等于1.x版本。 解决办法,降低werkzeug的版本即可 pip uninstall Werkzeug pip install Werkzeug==0.16.1 ...
分类:
其他好文 时间:
2021-02-15 11:52:49
阅读次数:
0
Hive 运行过程异常信息有时不能完全显示在终端上,此时可以用 Hive Debug 模 式进行调试 hive --hiveconf hive.root.logger=INFO,console 1、表不存在 FAILED: SemanticException [Error 10001]: Line ...
分类:
其他好文 时间:
2021-02-10 13:39:36
阅读次数:
0
系统:win7家庭版 Access版本:Office2010专业版64位(x64) 报错描述:(如下图) 解决过程:我在网上看了很多解决方法,都治标不治本,说的不太明白,有人说是安装office软件的时候没完整安装导致的,于是我卸载office又重新安装了一遍,发现确实是这样(方法:安装时选择自定义 ...
分类:
数据库 时间:
2021-02-10 13:34:15
阅读次数:
0
HTTP Content Type 文件扩展名 Content-Type 文件扩展名 Content-Type .* application/octet-stream .tif image/tiff .001 application/x-001 .301 application/x-301 .323 ...
分类:
Web程序 时间:
2021-02-10 13:19:44
阅读次数:
0