This article mainly introduces the use of as in Python, example analysis of the functions of as and related use skills, very practical value, the need for friends can refer to the
The examples in this article describe the as usage in Python. Share to everyone for your reference. The specific analysis is as follows:
|1||Import some # some for a module|
If you want to change the name of the imported module in the current module, not the name in the Sys.modules. You can use the import as, for example:
|1 2||Import some as other print (Other.name)|
|1 2 3 4||Import some other = some del some print (other.name)|
I hope this article will help you with your Python programming.
Note < > : More Wonderful tutorials please focus on Triple programming