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
# modified based on https://gist.github.com/2770237 | |
from struct import unpack | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
from httplib import HTTPResponse | |
from SocketServer import ThreadingMixIn | |
import socket | |
import time | |
x_sogou_auth = "9CD285F1E7ADB0BD403C22AD1D545F40/30/853edc6d49ba4e27" |
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 | |
chars = 'defillmorsty' | |
w_len = 7 | |
assert len(chars) == 12 | |
import enchant | |
d = enchant.Dict('en_US') | |
from itertools import permutations |
NewerOlder