Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~750 People Reached
Favorite Forums
Favorite Tags

4 Posted Topics

Member Avatar for alabandit

i'm stumped... i get strange results from string[10:] to get the last 10 characters from a string? the code supposed to rename a batch of file sequentially and the number of numbers needs to be consistent eg. 00001 - 99999 thanks for the help [CODE]import os x=0 for file in …

Member Avatar for alabandit
0
264
Member Avatar for alabandit

I generate an array from the folders in a directory; which is placed in an array. i then compare it for changes in the currant folder.This way i can monitor for new files that are add to the system and trigger the script. but i am having problems comparing the …

Member Avatar for alabandit
0
133
Member Avatar for shyami

[QUOTE=jcao219;1181601]Here's a general idea of what's happening: [CODE] abc = ['a','b','c'] print(abc[3]) #IndexOutOfRange exception [/CODE][/QUOTE] should be [CODE]print(abc[2])[/CODE] the first item in the index is 0, so the last item should there fore be 2

Member Avatar for TrustyTony
0
93
Member Avatar for alabandit

I need to monitor a number of folders over a period of time. so i pass the files in each folder to a list of list. [CODE] import os path_to_watch = [] path_to_watch.append("/path1/") path_to_watch.append("/path2/") path_to_watch.append("/path3/") before = [],[] for item, folder in enumerate(path_to_watch): print "i am here", item, " : …

Member Avatar for TrustyTony
0
260

The End.