[Tutor] An idea for a script

Kent Johnson kent37 at tds.net
Thu Oct 11 13:48:02 CEST 2007


Dick Moores wrote:
> I think I've done it, and with only the initial help from Ian.
> 
> <http://www.rcblue.com/Python/getCrew_ForWeb.py> (The output is 
> pasted at the bottom of the script.)

> print "starting at", time.asctime()[11:19]

You can ask for the format you want directly:
print "starting at", time.strftime('%H:%M:%S')

> b = a.split('href="')
> lstB = []
> for x in b:
>     lstB.append(x)

This just makes a copy of b, which you probably don't need, I don't see 
any other use of b. So just write
lstB = a.split('href="')

Kent


More information about the Tutor mailing list