iOS - пересылать все касания через вид

Ну, этот мог бы быть быстрее, поскольку он сравнивает в C:

def occurrences(string, sub):
    count = start = 0
    while True:
        start = string.find(sub, start) + 1
        if start > 0:
            count+=1
        else:
            return count
124
задан andersonvom 19 February 2018 в 10:44
поделиться