分两部分:1python脚本2一个config.txt文件有机会在共享一下编译成exe的文件。1、脚本#!/usr/bin/envpythonimportosimportsysimportsocketimportmsvcrtb=sys.platformarr=[]if‘win*‘==b:config=sys.path[0]+‘\config.txt‘else:con
分类:
编程语言 时间:
2018-08-21 12:15:02
阅读次数:
356
Hibernate检索方式的分类 Hibernate的检索方式主要有5种,分别为导航对象图检索方式、OID检索方式、HQL检索方式、QBC检索方式和SQL检索方式。下面对这5中检索方式的使用进行详解。 1. 对象图导航检索 对象图导航检索方式是根据已经加载的对象,导航到他的关联对象。它利用类与类之间 ...
分类:
Web程序 时间:
2018-08-21 10:54:37
阅读次数:
203
The K?P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program t ...
分类:
其他好文 时间:
2018-08-21 00:27:26
阅读次数:
165
docker common error Non existing image of running container drm() { docker rm $(docker ps q a); } dri() { docker rmi $(docker images q); } ddri(){ doc ...
分类:
其他好文 时间:
2018-08-20 22:59:01
阅读次数:
614
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th ...
分类:
其他好文 时间:
2018-08-20 19:44:40
阅读次数:
192
Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non negatives, and all ...
分类:
其他好文 时间:
2018-08-20 17:55:35
阅读次数:
166
A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with ...
分类:
其他好文 时间:
2018-08-20 17:53:26
阅读次数:
219
In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which ...
分类:
其他好文 时间:
2018-08-20 17:22:11
阅读次数:
225
JDK8的新特性: Lambda表达式与Functional接口 在JDK8之前,Java是不支持函数式编程的,所谓的函数编程,即可理解是将一个函数(也称为“行为”)作为一个参数进行传递。通常我们提及得更多的是面向对象编程,面向对象编程是对数据的抽象(各种各样的POJO类),而函数式编程则是对行为的 ...
分类:
编程语言 时间:
2018-08-20 14:30:26
阅读次数:
146
以下只是对yarn配置文件(yarn.site.xml)简单的一个配置 <configuration><!-- rm失联后重新链接的时间 --> <property> <name>yarn.resourcemanager.connect.retry-interval.ms</name> <value ...
分类:
其他好文 时间:
2018-08-20 14:29:36
阅读次数:
1267