What is the difference between library and package?

I am little bit confused with the name package. I have heard about matplotlib plotting library for Python, gnuplotfortran plotting library for Fortran. But Can't I say them packages instead of library?

Please clarify if there is any difference between library and package in a broad sense.


Libraries are a more abstract concept than for example, packages, assemblies, or gems. The latter constructs are platform specific terms for concrete components of code bases. Libraries are often comprised of several components.

Think of libraries as sets of cohesive, related tools dealing with some problem domain. On the other hand, think of packages as units of organization and modularization for grouping code assets.

链接地址: http://www.djcxy.com/p/73890.html

上一篇: R中的库和包之间有什么区别?

下一篇: 库和包有什么区别?