Python: Defining Functions

Pubblicato il: 12 marzo 2012
sul canale di: Barry Brown
88,473
335

A video about writing simple functions in the Python programming language. We start by defining a function in the Python Shell. Then we show how to write the same function in a text editor and include unit tests (using the doctest module).

To use doctest, include the following three lines at the bottom of your file:

if _name_ == "__main__":
import doctest
doctest.testmod(verbose=True, optionflags=doctest.NORMALIZE_WHITESPACE)


In questa pagina del sito puoi guardare il video online Python: Defining Functions della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Barry Brown 12 marzo 2012, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 88,473 volte e gli è piaciuto 335 spettatori. Buona visione!