Search Results

Search: Posts Made By: durden_tyler
Forum: Programming 06-06-2017
3,651
Posted By durden_tyler
Do not add a duplicate entry in the first place: ...
Do not add a duplicate entry in the first place:


tut_links = {}
for subdir, dirs, files in os.walk('./html/tutorials/blah'):
for tut in files:
if tut.endswith(".html"):
...
Forum: Programming 06-06-2017
3,651
Posted By durden_tyler
Is each value of the dictionary: (a) a list (or...
Is each value of the dictionary:
(a) a list (or array) of URLs? or
(b) a comma-delimited string of URLs?

If you want (a), then try something like the following:


tut_links = {}
for subdir,...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy