摘要:
import hashlib def gen_test_data(): d = {} i = 0 f = open("./md5.txt", "w") while i < 30000000: md5 = hashlib.md5('adsf' + str(i)) n = int(md5.hexdigest(), 16) ... 阅读全文
摘要:
def parse(terms, i, ts): s = [] while i < len(terms): t = terms[i] if t == '(': if len(s): ts.extend(s) s = [] child, i = parse(terms, i + 1, []) ts.a 阅读全文