First page Back Continue Last page Summary Graphics
Namespaces (Modules)
import os
from whrandom import random
print 'Current working directory is:', os.getcwd()
print 'A random value between 0 and 1 is:', random()
import XXX # import module XXX
import XXX as YYY # module XXX is referenced by YYY
from XXX import * # imports everything from XXX
# into local namespace
from WWW.XXX.YYY import ZZZ
- # imports ZZZ from WWW.XXX.YYY
-
Notes: