Python Module

0
13χλμ.

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 Improve Organizational Skills?
Organizational skills are essential for success in office administration and many other...
από Dacey Rankins 2026-04-20 17:51:05 0 4χλμ.
Economics
What causes productivity declines?
What Causes Productivity Declines? Productivity is one of those deceptively simple concepts that...
από Leonard Pokrovski 2026-06-21 07:49:55 0 2χλμ.
Money
How Many Credit Cards Should I Have?
How Many Credit Cards Should I Have? Credit cards can be powerful financial tools when used...
από Leonard Pokrovski 2025-09-30 22:45:50 0 17χλμ.
Business
How Can the Product Stay Relevant or Adapt to Future Needs?
In the ever-changing marketplace, no product can remain static and survive. Customer...
από Dacey Rankins 2025-08-19 17:49:15 0 18χλμ.
Business
How Often Should I Update My Business Plan?
A business plan is a dynamic document that provides a roadmap for your company’s growth and...
από Dacey Rankins 2024-12-19 15:06:58 0 23χλμ.

BigMoney.VIP Powered by Hosting Pokrov