参考:https://blog.csdn.net/u014281392/article/details/73611624 import matplotlib.pyplot as plt ## 导入画图模块 from matplotlib.pylab import date2num ## 导入日期到数 ...
分类:
其他好文 时间:
2020-02-08 13:41:50
阅读次数:
147
import osimport collectionsdef getAllDirQU(path): queue = collections.deque() #进队 queue.append(path) while len(queue) != 0: #出队数据 dirPath = queue.popl ...
分类:
编程语言 时间:
2020-02-08 13:37:50
阅读次数:
98
1、备份 sudo mv /etc/apt/sources.list /etc/apt/sources.list.bk 2、编辑 sudo vim /etc/apt/sources.list 2.1 中科大源 ##中科大源 deb https://mirrors.ustc.edu.cn/ubuntu ...
分类:
系统相关 时间:
2020-02-08 13:32:21
阅读次数:
107
https://www.luogu.com.cn/blog/ShineEternal/linear-equation-group #include<cstdio> #include<cmath> #include<iostream> using namespace std; double a[105 ...
分类:
其他好文 时间:
2020-02-08 13:18:04
阅读次数:
70
I need to set the codebase for the RMI application I'm working on at the moment and have done this successfully using first try{ ResourceBundle config ...
分类:
编程语言 时间:
2020-02-08 12:08:42
阅读次数:
120
方法一: Random e = new Random(); int ra2=e.nextint(11);获得0-10的随机数不包括11 方法二: ra=Math.random(); System.out.println((int)ra*100);获得100-0之间的随机数 ...
分类:
其他好文 时间:
2020-02-08 11:49:24
阅读次数:
39
MyBatis整合,PageHelper分页插件,Spring事物管理。MyBatis整合在web.xml配置放jdbc.properties等配置文件的目录路径。1234 PROP_HOME /Users/**/config在spring的spring-mvc.xml引入上面配的PROP_HOME... ...
分类:
编程语言 时间:
2020-02-08 11:48:34
阅读次数:
59
我TM一直用vue的post提交数据,一直403,然后测试了N种方法,最后居然是被rest_rest_framework的认证系统 给坑惨了,我没定义认证,它却自动的给我默认上拒绝了 setting配置: REST_FRAMEWORK = { "DEFAULT_AUTHENTICATION_CLAS ...
分类:
其他好文 时间:
2020-02-08 11:46:39
阅读次数:
64
背景 我们平常打开一些App的时候,经常有一个“查询周边景点”的功能,如我在高德里面就查询到了附近的景点。 这种计算如果通过普通的关系型数据库,那对服务器和数据库的性能要求就太高了。 我们可以通过MongoDB自带的地址位置索引来实现。 如何使用前期准备:插入数据我们先插入四条数据,即店铺的类型,名 ...
分类:
数据库 时间:
2020-02-08 11:24:52
阅读次数:
85
div.absolutemiddle { position: absolute; left: 50%; transform: translate(-50%); /* 平移50%为自身尺寸的一半,实现水平居中 */ } ...
分类:
Web程序 时间:
2020-02-08 10:05:48
阅读次数:
101