Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: make a list of the file in the folder and change the name of file regarding to time
Post: RE: make a list of the file in the folder and chan...

@DeaD_EyE Thanks for information and code. Problem is, that I have not same name everyday. the name will change by date. eg. today would be : 2020-02-21#001.tws and also it would be possible that t...
go127a General Coding Help 5 3,000 Feb-21-2020, 10:36 AM
    Thread: make a list of the file in the folder and change the name of file regarding to time
Post: RE: make a list of the file in the folder and chan...

thanks for reply, something that i have not understand is, should i use dic in the fucntion line? general can you explain the code ? thanks
go127a General Coding Help 5 3,000 Feb-10-2020, 08:29 PM
    Thread: make a list of the file in the folder and change the name of file regarding to time
Post: make a list of the file in the folder and change t...

I have a list of file. I am going to change the file name regarding to the modified date in below format. original file name: 2019-11-26_#001.tws 2019-11-26_#002.tws 2019-11-26_#004.tws ... new nam...
go127a General Coding Help 5 3,000 Feb-07-2020, 05:34 AM
    Thread: Python: possibilty ro make a list of the file in the folder & change the name of file
Post: Python: possibilty ro make a list of the file in t...

I have a list of file. I am going to change the file name regarding to the modified date in below format. original file name: Output:2019-11-26_#001.tws 2019-11-26_#002.tws 2019-11-26_#004.tws ...ne...
go127a General Coding Help 0 1,705 Feb-05-2020, 01:16 PM
    Thread: renaming the file in a suitable format, I just wondering if it is possible
Post: RE: renaming the file in a suitable format, I just...

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...
go127a General Coding Help 11 5,297 Jun-26-2019, 04:37 AM
    Thread: renaming the file in a suitable format, I just wondering if it is possible
Post: RE: renaming the file in a suitable format, I just...

I have wrote below code but I dont know how can i put it in loop and update the second part of the new name for each file in the path. import os import glob files = glob.glob('2019-06-13_#**.tws') for...
go127a General Coding Help 11 5,297 Jun-21-2019, 04:09 PM
    Thread: renaming the file in a suitable format, I just wondering if it is possible
Post: RE: renaming the file in a suitable format, I just...

I have tried to make my question more understandable here. a post before that I have mentioned that I am going to work on it!!
go127a General Coding Help 11 5,297 Jun-21-2019, 02:25 PM
    Thread: renaming the file in a suitable format, I just wondering if it is possible
Post: RE: renaming the file in a suitable format, I just...

(Jun-11-2019, 06:00 AM)go127a Wrote: I have a list of file which I have gathered them in time order, I should change the file name (just name) in order of the time. The name changing process will co...
go127a General Coding Help 11 5,297 Jun-13-2019, 09:40 AM
    Thread: renaming the file in a suitable format, I just wondering if it is possible
Post: RE: renaming the file in a suitable format, I just...

Thanks, i will take a look at that post. and will try to write it.
go127a General Coding Help 11 5,297 Jun-12-2019, 04:39 AM
    Thread: renaming the file in a suitable format, I just wondering if it is possible
Post: RE: renaming the file in a suitable format, I just...

I did not say something about string. I have said that I have 20 files with different name which I have saved them in the time order. Which I mean the best way to numbering them would be the time. For...
go127a General Coding Help 11 5,297 Jun-11-2019, 09:39 AM
    Thread: renaming the file in a suitable format, I just wondering if it is possible
Post: renaming the file in a suitable format, I just won...

I have a list of file which I have gathered them in time order, I should change the file name (just name) in order of the time. The name changing process will contain; Removing the name from ‘#’ sign...
go127a General Coding Help 11 5,297 Jun-11-2019, 06:00 AM
    Thread: making the code easier, list comprehension
Post: making the code easier, list comprehension

Hello. I receive a number like: ‘n’ from input, which means I will receive ‘n’ two number; The first one is price and the second one is quality. I should evaluated the numbers. If I can find the belo...
go127a General Coding Help 2 2,095 May-26-2019, 02:31 PM
    Thread: how can I generate a password in hashlib
Post: RE: how can I generate a password in hashlib

it works, I wonder that you wrote it in 16 lines!! There is problem, when some new name came into the game. for example if i have input like below: Quote:danial,99b057c8e3461b97f8d6c461338cf664bc847...
go127a General Coding Help 20 8,778 May-19-2019, 09:01 AM
    Thread: how can I generate a password in hashlib
Post: RE: how can I generate a password in hashlib

thanks I have made a new list from data on the previous code. and I can reach the perfect results. except an extra empty line at the end. which I dont know how to remove it. Quote:data= ['Daniel', '5...
go127a General Coding Help 20 8,778 May-18-2019, 01:22 PM
    Thread: how can I generate a password in hashlib
Post: RE: how can I generate a password in hashlib

yes I have tried to make the question shorter, anyway here is the final code which I have a problem to write it out in that order which I have said: #csvfilecontain: #danial,99b057c8e3461b97f8d6c4...
go127a General Coding Help 20 8,778 May-14-2019, 12:47 PM
    Thread: how can I generate a password in hashlib
Post: writing on csv file problem, python

I have a list like: Quote:['danial', '5104', 'elham', '9770'] I should write every name and password like below format on output csv file: Quote:daniel,5104 elham,9770 I have used below code, but I ...
go127a General Coding Help 20 8,778 May-14-2019, 12:29 PM
    Thread: how can I generate a password in hashlib
Post: RE: how can I generate a password in hashlib

I know how can I write the csv file, but I dont know how can I fix the output in order to reach the prefer output. here is the output of my code. Quote:d,a,n,i,a,l 5,1,0,4 p,e,t,e,r 9,7,7,0 and its f...
go127a General Coding Help 20 8,778 May-14-2019, 11:34 AM
    Thread: Avoiding empty line in writing process csv file
Post: RE: Avoiding empty line in writing process csv fil...

I have used below code for writing, is it correct? (i mean is there any easier way?) for item in data: dataf=str(item) with open('grades.csv', 'w', newline='') as output_...
go127a General Coding Help 4 9,767 May-10-2019, 01:33 PM
    Thread: Avoiding empty line in writing process csv file
Post: RE: Avoiding empty line in writing process csv fil...

its correct there is no problem with writing, the csv file should be rewrite by the results, but the problem is, I have two line in the output (one extra line, which is unnecessary) the problem produ...
go127a General Coding Help 4 9,767 May-10-2019, 12:29 PM
    Thread: Avoiding empty line in writing process csv file
Post: Avoiding empty line in writing process csv file

Hallo, I have done some calculation on csv file. However, the output csv, after writing process added one empty line at the end of results. My question is how can I remove or avoid that line. the c...
go127a General Coding Help 4 9,767 May-10-2019, 12:06 PM

User Panel Messages

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