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

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Finance
How to budget properly
Saving money can be a straightforward process if you approach it with some planning and...
από Dacey Rankins 2024-10-04 15:54:02 0 11χλμ.
Programming
Tips to Avoid Ratelimits
Ratelimits can happen when you send a request too many times in a certain amount of time. To...
από Jesse Thomas 2023-02-16 22:02:39 0 10χλμ.
История
Пожары. Incendies. (2010)
Когда брат и сестра Марван ознакомились с завещанием матери, их удивлению не было предела. Её...
από Nikolai Pokryshkin 2023-01-23 12:00:36 0 30χλμ.
Marketing and Advertising
What Makes a Good Influencer?
Criteria for selecting influencers who drive real results Introduction: Why Choosing the Right...
από Dacey Rankins 2025-10-07 17:50:15 0 2χλμ.
Business
Why Do Organizations Implement Mentoring Programs?
In today’s dynamic workplace, companies are constantly looking for ways to strengthen...
από Dacey Rankins 2025-07-09 14:36:47 0 5χλμ.

BigMoney.VIP Powered by Hosting Pokrov