1 / 45
Télécharger la présentation
Comprehensive Python Tutorial for Coastal and Ocean Mapping - NOAA/UNH Hydrographic Center
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.
Content is provided to you AS IS for your information and personal use only.
Download presentation by click this link.
While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
Presentation Transcript
31-Oct-2006 A Python Tutorial Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center Kurt Schwehr 31 Oct 2006
Reading a file Adding a comma prevents the extra new line
Writing a python file (aka module) • env finds python in your path • chmod +x dump.py • ./dump.py
Handling programs in a better way • __name__ is set to main if the file is being executed
Use this function from outside the file • Whoops - no documentation!
Epydoc is Kurt’s favorite way to document python code • Epydoc imports your file and creates html documentation
Here is the initial edydoc page • Nice, but could be better • Use markups in the doc string to tell epydoc more
More Related