Python Module

0
6χλμ.

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

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Hospitality
Hospitality in service
Hospitality is cordiality in the reception and entertainment of visitors (guests), gratuitous...
από FWhoop Xelqua 2023-07-31 18:22:35 0 509χλμ.
Publishing and Printing
Printing Designer
A printing designer develops and implements in design layouts concepts for the design of printed...
από Michael Pokrovski 2024-03-18 20:59:30 0 17χλμ.
Жизненные вопросы
Человек-слон. The Elephant Man. (1980)
Доктор Тривз находит Меррика в «фрик-шоу». Внешность его настолько ужасающая, что ему...
από Nikolai Pokryshkin 2023-02-28 13:48:21 0 12χλμ.
Employment
Recruitment agencies
A recruitment agency is an organization that professionally mediates between the applicant and...
από FWhoop Xelqua 2023-03-16 18:42:47 0 15χλμ.
Business
How do I effectively interact with my audience to build a loyal community?
Building a loyal community is a key component of long-term success in any business, brand, or...
από Dacey Rankins 2025-02-20 16:48:36 0 3χλμ.
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov