|
@@ -26,9 +26,9 @@ def decodestr(s):
|
|
if __name__ == "__main__":
|
|
if __name__ == "__main__":
|
|
if len(sys.argv) != 3:
|
|
if len(sys.argv) != 3:
|
|
print "usage: word_generater.py [decodestr]/[encodestr] [string]"
|
|
print "usage: word_generater.py [decodestr]/[encodestr] [string]"
|
|
- if sys.argv[1] == "decodestr" :
|
|
|
|
|
|
+ if sys.argv[1] == "decode" :
|
|
print decodestr(sys.argv[2])
|
|
print decodestr(sys.argv[2])
|
|
- if sys.argv[1] == "encodestr" :
|
|
|
|
|
|
+ if sys.argv[1] == "encode" :
|
|
print encodestr(sys.argv[2])
|
|
print encodestr(sys.argv[2])
|
|
#print encodestr('6379')
|
|
#print encodestr('6379')
|
|
#print decodestr('dHbR7NjM3OQ')
|
|
#print decodestr('dHbR7NjM3OQ')
|