def __init__(self, impl=None): self._impl = impl or _poll() if hasattr(self._impl, 'fileno'): self._set_close_exec(self._impl.fileno()) self._handlers... ...
分类:
其他好文 时间:
2017-05-11 17:01:06
阅读次数:
264
方法一: 首先建立一个计算函数 1 create or replace function count_rows(table_name in varchar2, 2 owner in varchar2 default null) 3 return number 4 authid current_use ...
分类:
数据库 时间:
2017-05-10 15:38:48
阅读次数:
224
例如:adb shell sendevent /dev/input/event3 1 $((0xca)) 1上面语句中含有$((0xca)) ,执行Runtime.getRuntime().exec("sendevent /dev/input/event3 1 $((0xca)) 1"),不会报错, ...
分类:
数据库 时间:
2017-05-10 14:48:45
阅读次数:
338
find path -option [ -print ] [ -exec -ok command ] {} \; path: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print 将查找到的文件输出到标准输出-exec command {} \; 将查到的文件执行 ...
分类:
系统相关 时间:
2017-05-10 14:46:53
阅读次数:
232
问题 如何获取一个函数形参?我们都知道通过arguments可以获取运行时的实参值,但是形参值怎么获取,如果我们对toString的用法了解,这个问题就好解答了 toString Function.prototype.toString里有一句话说,在一个函数上直接调用toString方法,会以字符串 ...
分类:
其他好文 时间:
2017-05-10 12:57:36
阅读次数:
156
curtime=$(date +%Y%m%d%H%M) for i in $@dofind ${bkwikiLocation} -mtime +21 -name "${i}_*" -type d -exec rm -rf {} \;if [ -d ${wikiLocation}${i} ]; the ...
分类:
系统相关 时间:
2017-05-08 21:00:57
阅读次数:
148
1,系统配置 1. 把系统相关的一些目录配置 写到qt.conf文件里,详细情况情参考QSettings里的qt.conf部分 You can use the qt.conf file to override paths or to specify arguments to be passed to ...
分类:
其他好文 时间:
2017-05-08 21:00:00
阅读次数:
152
一.安装1.使用git或者composer(composer update)进行实时更新,区别在于git不会清空核心框架目录而composer会清空。2.使用官网打包好的TP压缩包(解压即可用)->不是实时更新更新3.国内的码云和Coding代码托管平台都有ThinkPHP5的镜像 二.目录结构命令 ...
分类:
Web程序 时间:
2017-05-08 17:52:30
阅读次数:
552
从网上找的java执行cmd命令的文章,摘抄一段。 java的Runtime.getRuntime().exec(commandStr)可以调用执行cmd指令。cmd /c dir 是执行完dir命令后封闭命令窗口。cmd /k dir 是执行完dir命令后不封闭命令窗口。cmd /c start ...
分类:
编程语言 时间:
2017-05-08 17:52:00
阅读次数:
246