Python Module

0
11χλμ.

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).

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Ужасы
Время. Old. (2021)
Отправившись в отпуск на тропический остров, семья с двумя детьми решает последовать совету...
από Nikolai Pokryshkin 2022-09-11 22:13:06 0 39χλμ.
Environment
Environment
Environment What does that mean? The environment is what is around you and how it affects your...
από FWhoop Xelqua 2022-12-17 14:55:18 0 23χλμ.
Business
What is Ideation, and Why is it Important in the Innovation Process?
Innovation is at the heart of every successful business, driving growth, differentiation, and...
από Dacey Rankins 2025-03-19 14:59:05 0 7χλμ.
Другое
Дикие истории. Wild Tales. (2014)
Гэбриела Пастернака обижали многие, с кем сводила его жизнь – девушка, учитель музыки,...
από Nikolai Pokryshkin 2023-04-03 12:12:35 0 43χλμ.
Nature and Science
The Lion King. (1994)
A young lion prince is cast out of his pride by his cruel uncle, who claims he killed his father....
από Leonard Pokrovski 2022-11-28 21:25:28 0 23χλμ.

BigMoney.VIP Powered by Hosting Pokrov