Mercurial > hg > Members > nobuyasu > test
changeset 14:19b1335632f6
commit
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 01 Jul 2012 00:23:51 +0900 |
parents | 30c56504824c |
children | b48915bffa79 |
files | scriptTest/search.k scriptTest/search.py |
diffstat | 2 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scriptTest/search.k Sun Jul 01 00:23:51 2012 +0900 @@ -0,0 +1,9 @@ +K.import("konoha"); +K.import("konoha.io"); + +System.p("test"); + +InputStream in = new InputStream("test.txt"); +System.p(in.readLine()); + +
--- a/scriptTest/search.py Fri Jun 29 23:19:02 2012 +0900 +++ b/scriptTest/search.py Sun Jul 01 00:23:51 2012 +0900 @@ -2,16 +2,10 @@ import re - -#f = open('~/testProgram/wiki/enwiki20110526.txt', 'r') -f = open('./test.txt', 'r') +f = open('/home/student/e08/e085711/testProgram/wiki/enwiki20110526.txt', 'r') +#f = open('./test.txt', 'r') for line in f: - if re.search('include', line) : print line - - + if re.search('int', line) : print(line,end="") +# if re.match('int', line) : print(line,end="") - - - -