I
I
iluwa2018-06-05 14:18:47
Python
iluwa, 2018-06-05 14:18:47

How to automate version generation?

Hello, tell me, please, is there any library that can generate versions?
Meaning: there is a format string "1.1.1.1", you need to convert it to "1.1.1.2", and if the value is greater than 10 - reset the number and add 1 to the previous number?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2018-06-05
@iluwa

Librarian to the rescue:

for v in range(1111, 1123):
    print('.'.join(str(v)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question