Python Module

0
12كيلو بايت

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

البحث
الأقسام
إقرأ المزيد
Telecommunications
The Evolution and Impact of Telecommunications
Telecommunications refers to the transmission of information over significant distances,...
بواسطة Dacey Rankins 2024-11-14 15:42:44 0 12كيلو بايت
Business
What Are the Startup Costs Involved?
Starting a new business is an exciting venture, but it often requires careful planning and an...
بواسطة Dacey Rankins 2025-02-04 15:50:01 0 11كيلو بايت
Investing
How can a seller enter the global market with minimal investment? Analysis of five risks.
  How can a seller enter the global market with minimal investment? Analysis of...
بواسطة Leonard Pokrovski 2024-03-13 21:38:24 0 31كيلو بايت
Television
FOX 5 NY Live Coverage New York USA
Webcams of New York. My Link
بواسطة Nikolai Pokryshkin 2022-09-22 11:27:43 0 25كيلو بايت
Financial Services
Changes in equilibrium price and quantity: the four-step process
Key points There is a four-step process that allows us to predict how an event...
بواسطة Mark Lorenzo 2023-04-10 20:19:42 0 22كيلو بايت

BigMoney.VIP Powered by Hosting Pokrov