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

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Ιστορίες
Unforgiven. (1992)
Retired Old West gunslinger William Munny reluctantly takes on one last job, with the help of his...
από Leonard Pokrovski 2023-02-14 14:32:39 0 16χλμ.
Television
FOX 32, Live TV. Chicago USA
FOX 32 is Chicago's source for news, weather, sports and entertainment. Our dedicated news team...
από Nikolai Pokryshkin 2022-09-14 08:52:28 0 34χλμ.
Television
FOX 2, Live TV. Detroit USA
FOX 2 Detroit's mornings news includes weather and traffic on the 2's plus breaking local,...
από Nikolai Pokryshkin 2022-09-19 09:03:51 0 40χλμ.
Social Issues
Hustlers. (2019)
Inspired by the viral New York Magazine article, Hustlers follows a crew of savvy former strip...
από Leonard Pokrovski 2023-05-27 19:28:30 0 30χλμ.
Paddleball
Paddleball - what is it?
Paddleball - Paddle-ball Paddleball is a sport that can be played on a half-court court using...
από FWhoop Xelqua 2022-10-23 15:18:21 0 18χλμ.

BigMoney.VIP Powered by Hosting Pokrov