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

Тел: +7 965 3737 888

499

Просмотров

0

Ответов

Integer list to pattern function

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

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

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

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

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