示例#1
0
def runWithNumberOfAuthorsChanging():
    with open("authorsChanging.txt", "w+") as oFile:
        for i in range (20, 320, 10):
            books = GetBooks.getBooks(reParse = False, minNumberOfBooksRequired = 3, numberOfAuthorsToUse = i)
            average = runOneSimulation(books)
            print("on" + str(i))
            oFile.write(str(i) + "\t" + str(average))
            oFile.write('\n')
示例#2
0
def demo():
    books = GetBooks.getBooks(reParse = False, minNumberOfBooksRequired = 3, numberOfAuthorsToUse = 100)
    runOneSimulation(books)