mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 23:06:49 +02:00
Add Python Order Of Module Import for Python 3
This commit is contained in:
@@ -591,6 +591,11 @@ math.sqrt(16) == m.sqrt(16) # => True
|
|||||||
import math
|
import math
|
||||||
dir(math)
|
dir(math)
|
||||||
|
|
||||||
|
# If you have a Python script named math.py in the same
|
||||||
|
# folder as your current script, the file math.py will
|
||||||
|
# be loaded instead of the built-in Python module.
|
||||||
|
# This happens because the local folder has priority
|
||||||
|
# over Python's built-in libraries.
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
## 7. Advanced
|
## 7. Advanced
|
||||||
|
Reference in New Issue
Block a user