A library is a collection of objects, functions,or methods depending on the language used. It is a reusable code usually shared among multiple applications.
A framework can be everything used for software deployment. It can be a collection of a library, a collection of scripts, or any piece of software to create an application.
For example, jquery is a library and bootstrap is a framework