This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import marshal | |
inFile = open("inflection.table.txt","r") | |
outFile = open("031out.txt","w") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- python -*- | |
# -*- encoding: utf-8 -*- | |
import sys | |
for line in sys.stdin.readline().split("."): | |
#文字列先頭の空白部(' ')除去 | |
print line+"." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/en python | |
# -*- coding: utf-8 -*- | |
#1) 行数をカウントしたもの.確認にはwcコマンドを用いよ | |
#アプローチ:F.readlines()で行ごとに読み込みリスト化、 | |
#そのリストの要素数カウントをlen()関数で行う。 | |
f = open("../43KUMAMO.CSV", "r") | |
Content = f.readlines() | |
print len(Content) | |
f.close() |