#python #coding #beginner #external library #tkinter #selenium #plt #import #from #as #code #copy #rewrite
In order to use someone else's code, which is a required process in Python, it is good to know how to import an external library.
You can check the meaning of from, import, and as and the location of the actual external library.
Let's recap what may be confusing in the video...
1) import tkinter
Connect the external library (__init__.py in tkinter). how?
Through an object called tkinter.
So using a function as tkinter.Tk().
2) from tkinter import *
The contents of the external library (__init__.py in tkinter) (including all objects and functions) will be executed on this code.
So there is no need for a bridge with tkinter.
Because a function called Tk() is defined within this code, it can be used as just Tk().
19 май 2022