功能:
· 读文件的内容
用法:
相对路径的文件名
· act=read:读操作
· id:返回的书包名(可选,默认为标签名file)
· enc:文件内容的字符编码(可选,默认为平台文件存储编码@{sys:file.enc})
· method:目前的版本仅有str,即字符...
分类:
其他好文 时间:
2015-02-26 14:58:18
阅读次数:
172
例一:helloworld#!/bin/sh -xmessage="hello"read nameecho "$message ,$name"例二:选择性程序#!/bin/shmenu=("Apple" "Grape" "Orange")PS3="喜欢哪个"select item in ${menu...
分类:
系统相关 时间:
2015-02-26 09:53:10
阅读次数:
174
安装rlwrap-0.37.tar.gz工具--实现SQLPLUS中记忆和上下翻页功能在rpm10g32这个路径中1、解压缩[root@oracle3~]#cd/u01/rpm10g32[root@oracle3rpm10g32]#tar-zxvfrlwrap-0.37.tar.gz2、安装[root@oracle3rpm10g32]#cdrlwrap-0.37--root下安装,安装的时候可能会缺包,read-line..
分类:
数据库 时间:
2015-02-26 00:07:14
阅读次数:
248
#!/usr/bin/env?python
#coding:?utf-8
import?md5
import?os
from?time?import?clock?as?now
def?getmd5(filename):
????file_txt?=?open(filename,?‘rb‘).read()
????m?=?md5.new(f...
分类:
编程语言 时间:
2015-02-25 22:27:09
阅读次数:
403
SET TRANSACTION ISOLATION LEVEL xxx --每次设置只针对当前事务块xxx 取值:READ UNCOMMITTEDREAD COMMITTEDREPEATABLE READSNAPSHOTSERIALIZABLEtest1表数据如下: 现在对 Name 为 aaaa....
分类:
数据库 时间:
2015-02-25 15:36:27
阅读次数:
181
The difference here is that : char *s = "hello,world!";will place hello,world in read-only part of the memmory and makes s a pointer to that. makin...
分类:
其他好文 时间:
2015-02-24 22:13:31
阅读次数:
231
None CMS v1.0
index.php:
read())
{
//echo $file."";
if($file!='index.php'&&$file!='.'&&$file!='..'&&$file!='ctrl')$times[filemtime($file)]=$...
分类:
其他好文 时间:
2015-02-24 09:08:31
阅读次数:
209
最长上升子序列(LIS)的nlogn算法。
用dp[i]来表示长度为i的LIS末尾数字的最小值。每输入一个数,就把它插到dp数组合适的位置,而dp[]一定是有序的(因为每一步更新的保证),因此可以二分,用logn的复杂度就可以完成插入(准确地说是更新)。这个链接里讲得比较清楚:http://www.felix021.com/blog/read.php?1587
#include...
分类:
其他好文 时间:
2015-02-23 09:43:12
阅读次数:
134
3-PalindromesProblem code: PALIN3SubmitAll SubmissionsAll submissions for this problem are available.Read problems statements in Mandarin Chinese and ...
分类:
其他好文 时间:
2015-02-22 13:22:57
阅读次数:
124
Mahesh and his lost arrayProblem code: ANUMLASubmitAll SubmissionsAll submissions for this problem are available.Read problems statements in Mandarin ...
分类:
其他好文 时间:
2015-02-22 12:13:33
阅读次数:
122