mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Add Python Order Of Module Import for Python 3
This commit is contained in:
parent
13807790e4
commit
879337f9be
@ -591,6 +591,11 @@ math.sqrt(16) == m.sqrt(16) # => True
|
||||
import 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
|
||||
|
Loading…
Reference in New Issue
Block a user