Python Forum

Full Version: renaming the file in a suitable format, I just wondering if it is possible
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
it looks like perfect, but I have a question, why you are continue the numbering process more than 2 decimal, I mean:
1.1.tws
1.2.tws
2.1.tws
2.2.tws

after two numbering in every integer, should jump to the next one.

also can you please explain the 17 line?
(Jun-26-2019, 04:37 AM)go127a Wrote: [ -> ]after two numbering in every integer, should jump to the next one.
It's abnormal for both computer and human to count jump upwards like that.
Set it to eg float_range(1, 11, '0.5')
Output:
2019-06-13_#1.0.tws 2019-06-13_#1.5.tws 2019-06-13_#2.0.tws 2019-06-13_#2.5.tws
go127a Wrote:also can you please explain the 17 line?
Using zip() mean that i can loop two different cases at once, files(glob) and flot_range() function.
Pages: 1 2