Что находится в файле Eclipse .classpath / .project?

def count_overlaps (string, look_for):
    start   = 0
    matches = 0

    while True:
        start = string.find (look_for, start)
        if start < 0:
            break

        start   += 1
        matches += 1

    return matches

print count_overlaps ('abrabra', 'abra')
129
задан Joachim Sauer 22 October 2012 в 10:58
поделиться