Saturday, March 05, 2011

A little bit of Python: copy files, parsing a tab-delimited file

Good example:

A little bit of Python: copy files, parsing a tab-delimited file
October 21, 2010
Ben Chapman

Here’s our little snippet of Python for the week. We need to rename some jpeg files from the cryptic emplid.jpg form supplied by the parking office to something a little easier for humans to parse, like Chapman_Ben.jpg. Here’s one way to do it, assuming that you’ve already managed to generate a list of emplid to name mappings by querying a database or Excel spreadsheet or what have you.

參考來源:

"A little bit of Python: copy files, parsing a tab-delimited file October 21, 2010 Ben Chapman Here’s our little snippet of Python for the week. We need to rename some jpeg files from the cryptic emplid.jpg form supplied by the parking office to something a little easier for humans to parse, like Chapman_Ben.jpg. Here’s one way to do it, assuming that you’ve already managed to generate a list of emplid to name mappings by querying a database or Excel spreadsheet or what have you."
- A little bit of Python: copy files, parsing a tab-delimited file | Ben Chapman (在「Google 網頁註解」中檢視)