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)
На этой странице сайта вы можете посмотреть видео онлайн Python: Defining Functions длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Barry Brown 12 Март 2012, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 88,473 раз и оно понравилось 335 зрителям. Приятного просмотра!