Python Forum
renaming the file in a suitable format, I just wondering if it is possible
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
renaming the file in a suitable format, I just wondering if it is possible
#11
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?
Reply
#12
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Information automatic document renaming lisa_d 2 275 Mar-20-2024, 06:34 PM
Last Post: Pedroski55
  renaming the 0 column in a dataframe Led_Zeppelin 5 1,461 Aug-16-2022, 04:07 PM
Last Post: deanhystad
  Functions to consider for file renaming and moving around directories cubangt 2 1,699 Jan-07-2022, 02:16 PM
Last Post: cubangt
  Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. Ezzat 2 2,226 Dec-23-2021, 12:34 PM
Last Post: snippsat
  Reshape txt file into particular format using python shantanu97 0 1,396 Dec-10-2021, 11:44 AM
Last Post: shantanu97
  How can we transcode encoding file uml url format Anldra12 9 3,338 Jul-25-2021, 09:30 AM
Last Post: Anldra12
  How to design a save file format? philipbergwerf 5 4,064 Apr-26-2021, 07:39 PM
Last Post: Gribouillis
  Python with win32com and EXIF renaming files. Amrcodes 4 3,596 Apr-03-2021, 08:51 PM
Last Post: DeaD_EyE
  suitable libraries for project dogbural 0 1,408 Dec-29-2020, 12:38 PM
Last Post: dogbural
  CPC File Format (Cartesian Perceptual Compression) - Can Python Convert / Handle Them PSKrieger 2 2,417 Nov-11-2020, 02:57 PM
Last Post: PSKrieger

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020