diff options
author | Peng Wu <alexepico@gmail.com> | 2011-11-09 09:25:18 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-11-09 09:25:18 +0800 |
commit | 083a9fb6a32b1750c0924baf8cee550d75da64c3 (patch) | |
tree | 78798fc83d3af14e6ab8824b411066fb4b8b70ad /scripts/specialtable.py | |
parent | 2980b45009e45b12fe233d945fea1be3275de26d (diff) | |
download | libpinyin-083a9fb6a32b1750c0924baf8cee550d75da64c3.tar.gz libpinyin-083a9fb6a32b1750c0924baf8cee550d75da64c3.tar.xz libpinyin-083a9fb6a32b1750c0924baf8cee550d75da64c3.zip |
refine python code
Diffstat (limited to 'scripts/specialtable.py')
-rw-r--r-- | scripts/specialtable.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/specialtable.py b/scripts/specialtable.py index 6976bb7..acb66cf 100644 --- a/scripts/specialtable.py +++ b/scripts/specialtable.py @@ -103,8 +103,10 @@ def filter_resplit(): new_first_key, new_second_key, new_freq +#init code +load_phrase("pinyin2.txt") + if __name__ == "__main__": - load_phrase("pinyin2.txt") for p in filter_divided(): print (p) for p in filter_resplit(): |