Discrepancy between Videos and Exercises

127 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Ryan Rowland

ungelesen,
24.11.2016, 15:45:0824.11.16
an Python GCU Forum
Towards the end of the Regular Expressions video, Nick runs his script against a wildcarded filename of baby*.html to create a summary file of all the html files in the directory.

I wrote the script to create the summary file against a single file quite easily but found myself pulling my hair out ttrying to get it to work against a wildcarded list of files as I was getting an error along the lines of file doesn't exist.

After 10 minutes trying to fix it myself, I went to the solution to find the answer where I found the same error was given in that file too.

After a bit of online searching I found it wasn't working because I had to import the glob module and define a list of files from my wildcard.

This was easy enough one I knew that was the issue, but there was no clues given in the exercise files or this page: https://developers.google.com/edu/python/regular-expressions

I think something should be added so people realize why this might not work.

Cheers.
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten