Open Chinese Convert  0.4.3
A project for conversion between Traditional and Simplified Chinese
 All Data Structures Files Functions Variables Groups Pages
reverse.py
1 #!/usr/bin/env python
2 #coding: utf-8
3 import sys
4 from common import reverse_items
5 
6 if len(sys.argv) != 3:
7  print "Reverse key and value of all pairs"
8  print "Usage: ", sys.argv[0], "[input] [output]"
9  exit(1)
10 
11 reverse_items(sys.argv[1], sys.argv[2])