Introduction to Python Environments
Introduction to Python Environments
Encapsulating packages and their dependencies
How does Python structure code?
Namespace
A container used at runtime to hold Python symbols (and their values) A symbol could be:
A variable A class definition A function definition A module (containing its own namespace of functions, variables, classes, etc.)
How does Python structure code?
Namespace Adding to a namespace
Variable assignment Define a function or class
my_str = 'hello, world'
def my_function(s = ''): print 'I say: {0:s}'.format(s)
How does Python structure code?
Namespace Adding to a namespace
Variable assignment Define a function or class
my_str my_function
"hello, world" string
print 'I say...' callable
namespace
namespace
How does Python structure code?
Namespace Adding to a namespace
Variable assignment Define a function or class Import a module
my_str = 'hello, world' def my_function(s = ''):
print 'I say: {0:s}'.format(s) import sys from os import path
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- introduction to financial management pdf
- introduction to finance
- introduction to philosophy textbook
- introduction to philosophy pdf download
- introduction to philosophy ebook
- introduction to marketing student notes
- introduction to marketing notes
- introduction to information systems pdf
- introduction to business finance pdf
- introduction to finance 15th edition
- introduction to finance books
- introduction to finance online course