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
ANALYSIS AS A FUNCTIONAL ELEMENT OF BUSINESS PROCESS MANAGEMENT IN THE ORGANIZATION
The management of the activities of any organization is based on the use of various approaches...
από Dacey Rankins 2024-09-23 14:52:25 0 12χλμ.
Business
How Does the Build-Measure-Learn Feedback Loop Work?
The Build-Measure-Learn feedback loop is a core principle of the Lean Startup methodology,...
από Dacey Rankins 2025-03-07 13:52:36 0 7χλμ.
Спорт
Бойцовский клуб. Fight Club. (1999)
Сотрудник страховой компании страдает хронической бессонницей и отчаянно пытается вырваться из...
από Nikolai Pokryshkin 2022-11-07 20:17:51 0 34χλμ.
История
По соображениям совести. Hacksaw Ridge. (2016)
Медик американской армии времён Второй мировой войны Десмонд Досс, который служил во время битвы...
από Nikolai Pokryshkin 2023-04-01 12:56:30 0 33χλμ.
Sport
Touching the Void (2003)
The true story of two climbers and their perilous journey up the west face of Siula Grande in the...
από Leonard Pokrovski 2023-07-19 22:32:38 0 18χλμ.
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov