Загрузка страницы

Best Practices for Python Main Functions

You’ll learn about four best practices you can use to make sure that your code can serve a dual purpose:

1. Put most code into a function or class.
2. Use __name__ to control execution of your code.
3. Create a function called main() to contain the code you want to run.
4. Call other functions from main().

Click here to learn more: https://realpython.com/courses/python-main-function/

Видео Best Practices for Python Main Functions канала Real Python
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
12 марта 2020 г. 22:00:10
00:11:17
Яндекс.Метрика