Пример #1
0
def gen_8():
    NO = 8
    MAX = 3
    NO_SKU = 3
    start = ord('a')
    order_generator = OrderGen(NO_SKU, MAX)
    o = order_generator.generate_exact(NO)
    order_generator.save("order" + "_" + str(NO) + "_" + str(NO_SKU) + "_" +
                         chr(start) + ".txt")
Пример #2
0
def gen_196():
    NO = 196
    MAX = 25
    NO_SKU = 40
    start = ord('a')
    order_generator = OrderGen(NO_SKU, MAX)
    o = order_generator.generate_exact(NO)
    order_generator.save("order" + "_" + str(NO) + "_" + str(NO_SKU) + "_" +
                         chr(start) + ".txt")
Пример #3
0
def gen_3600():
    NO = 3600
    MAX = 50
    NO_SKU = 300
    start = ord('a')
    order_generator = OrderGen(NO_SKU, MAX)
    o = order_generator.generate_exact(NO)
    order_generator.save("order" + "_" + str(NO) + "_" + str(NO_SKU) + "_" +
                         chr(start) + ".txt")
Пример #4
0
def gen_64():
    NO = 64
    MAX = 20
    NO_SKU = 10
    start = ord('a')
    for i in range(4):
        order_generator = OrderGen(NO_SKU, MAX)
        o = order_generator.generate_exact(NO)
        order_generator.save("order" + "_" + str(NO) + "_" + str(NO_SKU) +
                             "_" + chr(start) + ".txt")
        start += 1
Пример #5
0
def gen_300():
    NO = 300
    MAX = 30
    NO_SKU = 50
    start = ord('a')
    for i in range(2):
        order_generator = OrderGen(NO_SKU, MAX)
        o = order_generator.generate_exact(NO)
        order_generator.save("order" + "_" + str(NO) + "_" + str(NO_SKU) +
                             "_" + chr(start) + ".txt")
        start += 1