Python Module

0
9كيلو بايت

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

البحث
الأقسام
إقرأ المزيد
Family
What is family?
As dictionaries say, "the family is a small social group based on marriage, consanguinity or...
بواسطة FWhoop Xelqua 2023-01-21 18:52:22 0 20كيلو بايت
التصميم
10 Tips on How to Make Money as a Designer
You might think that the matter is in the lack of higher education, but today it is not necessary...
بواسطة FWhoop Xelqua 2022-10-15 14:08:28 0 33كيلو بايت
Human Resources
What Are Collateral Resources: Definition and Examples
Section 1: Defining Collateral Resources We can think of collateral resources as a set of keys...
بواسطة Dacey Rankins 2024-03-12 16:00:28 0 30كيلو بايت
Television
Omega Gospel Live TV. South African Republic.
OMEGA Gospel TV Network is a Christian-based broadcast platform that continuously airs a unique...
بواسطة Nikolai Pokryshkin 2022-11-29 18:14:45 0 26كيلو بايت
История
Унесённые ветром. Gone with the Wind. (1939)
Могучие ветры Гражданской войны в один миг уносят беззаботную юность южанки Скарлетт О`Хара,...
بواسطة Nikolai Pokryshkin 2023-03-03 15:06:58 0 17كيلو بايت
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov