... '/usr/local/lib /python2 .2/ lib-dynload', '/usr/local/lib /python2 .2/ site-packages', '/usr/local/lib /python2 .2/ site-packages/PIL', '/usr/local/lib /python2 .2/ site-packages/piddle'] ... chapter.) Example 2. 4. Import Search Path >>> import sys >>> sys.path ['', '/usr/local/lib /python2 .2& apos;, '/usr/local...
Ngày tải lên: 07/11/2013, 10:15
Dive Into Python-Chapter 14. Test-First Programming
... "C:\docbook\dip\py\roman\stage2\romantest2.py", line 156, in testFromRomanCase roman2.fromRoman, numeral.lower()) File "c: \python2 1\lib\unittest.py", line 26 6, in failUnlessRaises raise ... "C:\docbook\dip\py\roman\stage1\romantest1.py", line 122 , in testTooManyRepeatedNumerals self.assertRaises(roman1.InvalidRomanNumeralError, roman1.fromRoman, s) File &quo...
Ngày tải lên: 20/10/2013, 10:15
... <b>...</b> <b> ;Python& lt;/b> is OSI Certified Open Source: Pythonline http://www.pythonline.com/ Dive Into <b> ;Python& lt;/b> http://diveintopython.org/ Dive Into <b> ;Python& lt;/b>. ... the word python . Example 12. 2. Sample Usage of search.py C:\diveintopython\common\py> python search.py " ;python& quot; <b> ;Python& lt;/b> P...
Ngày tải lên: 17/10/2013, 19:15
Dive Into Python-Chapter 13. Unit Testing
... 'MCMXCIII'), (20 74, 'MMLXXIV'), (21 52, 'MMCLII'), (22 12, 'MMCCXII'), (23 43, 'MMCCCXLIII'), (24 99, 'MMCDXCIX'), (25 74, 'MMDLXXIV'), (26 46, 'MMDCXLVI'), ... 'MCMXCIII'), (20 74, 'MMLXXIV'), (21 52, 'MMCLII'), (22 12, 'MMCCXII'), (23 43, 'MMCCCXLIII'), (24 99,...
Ngày tải lên: 20/10/2013, 10:15
Developing Your First ADO.NET phần 2
... Visual C# .NET from Sybex (20 02) . In the next section you'll see how to compile FirstExample.cs and run it. Compiling and Running FirstExample.cs You can compile the FirstExample.cs program ... System.Data.SqlClient.SqlConnection.Open() at FirstExample.Main() You can use the output from your catch block to determine the problem. If the database is down, contact your DBA. Note For b...
Ngày tải lên: 24/10/2013, 08:15
Dive Into Python-Chapter 15. Refactoring
... 'MCMXCIII'), (20 74, 'MMLXXIV'), (21 52, 'MMCLII'), (22 12, 'MMCCXII'), (23 43, 'MMCCCXLIII'), (24 99, 'MMCDXCIX'), (25 74, 'MMDLXXIV'), (26 46, 'MMDCXLVI'), ... (148, 'CXLVIII'), (29 4, 'CCXCIV'), (3 12, 'CCCXII'), ( 421 , 'CDXXI'), ( 528 , 'DXXVIII'), ( 621 , &ap...
Ngày tải lên: 24/10/2013, 09:15
Dive Into Python-Chapter 16. Functional Programming
... /home/you/diveintopython/common/py/fullpath.py path = /home/you/diveintopython/common/py full path = /home/you/diveintopython/common/py [you@localhost diveintopython]$ python common/py/fullpath.py 2 ... /home/you/diveintopython/common/py [you@localhost diveintopython]$ cd common/py [you@localhost py]$ python fullpath.py 3 sys.argv[0] = fullpath.py path = full path = /home/you/diveintopy...
Ngày tải lên: 24/10/2013, 09:15
Dive Into Python-Chapter 17. Dynamic functions
... 'vacancy') 2 'vacancies' 1 This regular expression turns vacancy into vacancies and agency into agencies, which is what you wanted. Note that it would also turn boy into boies, but ... Yes, it contains a. 2 OK, now find a, b, or c, and replace it with o. Mark becomes Mork. 3 The same function turns rock into rook. 4 You might think this would turn caps into o...
Ngày tải lên: 28/10/2013, 16:15
Dive Into Python-Chapter 18. Performance Tuning
... terribly excited about: C:\samples\soundex\stage1> ;python soundex1b.py Woo W000 17.1361133887 Pilgrim P 426 21 . 820 169 323 2 Flingjingwaller F4 52 32. 726 229 4509 We saw in Section 15.3, “Refactoring” that ... C:\samples\soundex\stage1> ;python soundex1d.py Woo W000 15.4065058548 Pilgrim P 426 22 .27 535678 42 Flingjingwaller F4 52 37.5845 122 774 Why isn't soundex1d.py fa...
Ngày tải lên: 28/10/2013, 16:15
Dive Into Python-Chapter 1. Installing Python
... ########################################### [100%] [root@localhost root]# python Python 2. 2 .2 (#1, Feb 24 20 03, 19:13:11) [GCC 3 .2. 2 20 03 022 2 (Red Hat Linux 3 .2. 2-4)] on linux2 Type "help", "copyright", ... [press Ctrl+D to exit] [root@localhost root]# python2 .3 Python 2. 3 (#1, Sep 12 2003, 10:53:56) [GCC 3 .2. 2 20 03 022 2 (Red Hat Linux...
Ngày tải lên: 07/11/2013, 10:15