下载安装模块 pip3 install mysql 使用操作 1.在python中使用sql语句 import pymysql conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='0123', db='te ...
分类:
数据库 时间:
2018-07-25 22:42:03
阅读次数:
261
oracle文档中对truncate权限的要求是需要某表在当前登录的用户下,或者当前登录的用户有drop any table的权限。 但是如果不满足第一个条件的情况下,要让某用户满足第二个条件就导致权限过大了。 参考网上的讨论,可以使用存储过程来时间。 例如有两个用户 u1,u2,u1下有表 tes ...
分类:
数据库 时间:
2018-07-25 11:36:37
阅读次数:
171
Nginx反向代理: 1) nginx提供静态资源服务 nginx的一大经典使用场景就是提供静态资源服务,假设/var/www/html是静态资源所在的文件夹,那么可以通过修改配置文件来通过nginx处理这些静态资源。 在 /etc/nginx/conf.d/default.conf中增加代码 Te ...
分类:
系统相关 时间:
2018-07-21 14:32:02
阅读次数:
149
package com.fh.jdk8; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import org.junit.Te... ...
分类:
编程语言 时间:
2018-07-20 16:47:38
阅读次数:
253
一、RestTemplate是什么 环境约束: spring web 4.3.9.RELEASE Spring文档: https://docs.spring.io/spring/docs/4.3.9.RELEASE/spring framework reference/html/remoting.h ...
分类:
其他好文 时间:
2018-07-18 20:33:49
阅读次数:
2220
import osimport timeimport sysimport requests#依序下载POP20_CC = ('CN IN US ID BR PK NG BD RU JP' 'MX PH VN ET EG DE IR TE CD TR').split()BASE_URL = 'http ...
分类:
编程语言 时间:
2018-07-17 23:29:58
阅读次数:
220
Minimum Ternary String time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a te ...
分类:
其他好文 时间:
2018-07-15 19:26:23
阅读次数:
258
Light It Up time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Light It Up time limit per te ...
分类:
其他好文 时间:
2018-07-14 17:42:58
阅读次数:
191
__author__ = "yang xin"array=[]def quickSort(left,right): if left > right: return temp = array[left] i = left j = right while i < j: if array[j] >= te ...
分类:
编程语言 时间:
2018-07-10 11:37:21
阅读次数:
215