Задать вопрос

Тел: +7 965 3737 888

483

Просмотров

0

Ответов

Pattern to integer list function

<p>This function can be util for transform pattern strings like these to list:</p>
&gt;&gt;&gt; pattern_to_list('42-45')
[42, 43, 44, 45]

&gt;&gt;&gt; pattern_to_list('15,49-52')
[15, 49, 50, 51, 52]

&gt;&gt;&gt; pattern_to_list('0-13')
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]

<p>You can use also the list to pattern function at <a href="http://foothold.ru/knowledge/detail/integer-list-to-pattern-function.html">http://foothold.ru/knowledge/detail/integer-list-to-pattern-function.html</a></p>

Вопрос полезен? Да0/Нет0
file_3398.py(324.0б)
None