Library
Imagine that you need a specific code to convert datetime from year/month/day to day/month/year ok?
Are you already. thought if someone in the world already makes it? so, if someone. already did it you and download it and use it as a library
Framework
Imagine that you are a bank and you need many many many libraries from the same maintainer because. you. want to manage and. validate one unique technology, these many libraries do many things to build an entry/big application, like a mobile app, web app and etc.
Example image
You have the framework
that will have MANY programmed codes to help you build your app and inside your app
you have many libraries
that is programmed codes for specific things.

I guess this link can help you https://medium.com/@i.e.rahul/eli5-platform-vs-framework-vs-library-154539de8b