diff options
author | Peng Wu <alexepico@gmail.com> | 2013-01-14 13:55:00 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-01-14 13:55:00 +0800 |
commit | 22113a32f7bef9010d12110ccb1e36b547c95ef0 (patch) | |
tree | b0bfedc63a126b04e31d93b624aa4d45ec4faa22 /scripts/specialtable.py | |
parent | 39e70310d49747ec1ec0890ccdfbf1a77c232338 (diff) | |
download | libpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.tar.gz libpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.tar.xz libpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.zip |
code re-factor
Diffstat (limited to 'scripts/specialtable.py')
-rw-r--r-- | scripts/specialtable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/specialtable.py b/scripts/specialtable.py index ead5300..5d1d599 100644 --- a/scripts/specialtable.py +++ b/scripts/specialtable.py @@ -36,7 +36,7 @@ def load_phrase(filename): phrasefile = open(filename, "r") for line in phrasefile.readlines(): line = line.rstrip(os.linesep) - (pinyin_str, freq) = line.split(' ', 1) + (pinyin_str, freq) = line.split(None, 1) freq = int(math.floor(float(freq))) if 0 == freq: #print(pinyin_str) |