The math
and sys
modules are builtins -- for purposes of speed, they're written in C and are directly incorporated into the Python interpreter.
To get a full list of all builtins, you can run:
>>> import sys
>>> sys.builtin_module_names
On my machine, that results in the following list:
__builtin__
__main__
_ast
_bisect
_codecs
_codecs_cn
_codecs_hk
_codecs_iso2022
_codecs_jp
_codecs_kr
_codecs_tw
_collections
_csv
_functools
_heapq
_hotshot
_io
_json
_locale
_lsprof
_md5
_multibytecodec
_random
_sha
_sha256
_sha512
_sre
_struct
_subprocess
_symtable
_warnings
_weakref
_winreg
array
audioop
binascii
cPickle
cStringIO
cmath
datetime
errno
exceptions
future_builtins
gc
imageop
imp
itertools
marshal
math
mmap
msvcrt
nt
operator
parser
signal
strop
sys
thread
time
xxsubtype
zipimport
zlib
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…