Python Module

0
8χλμ.

If you quit from the Python interpreter and enter it again, the definitions you have made (functions and variables) are lost. Therefore, if you want to write a somewhat longer program, you are better off using a text editor to prepare the input for the interpreter and running it with that file as input instead. This is known as creating a script. As your program gets longer, you may want to split it into several files for easier maintenance. You may also want to use a handy function that you’ve written in several programs without copying its definition into each program.

To support this, Python has a way to put definitions in a file and use them in a script or in an interactive instance of the interpreter. Such a file is called a module; definitions from a module can be imported into other modules or into the main module (the collection of variables that you have access to in a script executed at the top level and in calculator mode).

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Business
How Do I Determine If I’m the Right Founder for a Particular Idea?
Starting a business is a challenging yet exciting journey, and one of the most important...
από Dacey Rankins 2025-03-24 15:42:51 0 4χλμ.
Социальные проблемы
Схватка. Heat. (1995)
Нил МакКоли - один из лучших преступников Лос-Анджелеса. Ему противостоит лучший детектив Винсент...
από Nikolai Pokryshkin 2023-01-25 08:47:11 0 18χλμ.
Научная фантастика и фэнтези
Индиана Джонс: В поисках утраченного ковчега. Indiana Jones and the Raiders of the Lost Ark. (1981)
Известный археолог и специалист по оккультным наукам доктор Джонс получает опасное задание от...
από Nikolai Pokryshkin 2022-12-13 18:09:48 0 21χλμ.
Television
His Channel. Live TV. Santa Ana, California, USA
His Channel or The Conservative Christian Network is based in Santa Ana, California. Programming...
από Nikolai Pokryshkin 2022-09-27 08:20:04 0 31χλμ.
Социальные проблемы
Барри Линдон. Barry Lyndon. (1975)
История жизни простого ирландского парня Редмонда Барри. Будучи еще совсем молодым, он убил на...
από Nikolai Pokryshkin 2023-03-28 18:37:15 0 30χλμ.
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov