![]() įor example, functionality related to the operating system – such as creating files and folders – is stored in a package called os. You can find information on these, and many more, in the Python standard library documentation. Urllib: Tools for doing HTTP and other web requests. Json and csv: Tools for reading JSON-formatted and CSV-formatted files. ![]() ![]() Pickle: Tools for object persistence: saving objects to and loading objects from disk Random: Tools for generating pseudorandom numbers Itertools: Tools for constructing and interacting with iterators and generatorsįunctools: Tools that assist with functional programming Math and cmath: Mathematical functions and operations on real and complex numbers ![]() Os and sys: Tools for interfacing with the operating system, including navigating file directory structures and executing shell commands Here is an extremely incomplete list of some of the modules you might wish to explore and learn about: Any of these can be imported with the import statement, and then explored using the help function seen in the previous module. Python’s standard library contains many useful built-in modules, which you can read about fully in Python’s documentation. Some packages, like math, are bundled with every Python install downloading Python guarantees you’ll have these packages.Ĭollectively, this group of packages is known as the standard library. ![]() The word “module” is generally synonymous with package you will hear both in discussions of Python. However, to keep things organized, some Python functionality is stored in standalone packages, or libraries of code. So far we’ve seen several data types that Python offers out-of-the-box. However, we refer to the math library is part of the standard library and the numpy library is considered a third party library. These libraries represent two of the many readily available libraries at your disposal. In the above code we’ve seen a few different libraries installed ( math and numpy). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |