Tài liệu Dive Into Python-Chapter 5 Objects and Object-Orientation ppt

Tài liệu Dive Into Python-Chapter 5. Objects and Object-Orientation ppt

Tài liệu Dive Into Python-Chapter 5. Objects and Object-Orientation ppt

... a difficult time Chapter 5. Objects and Object-Orientation This chapter, and pretty much every chapter after this, deals with object- oriented Python programming. 5. 1. Diving In Here is a ... the same keys and values, and strings are equal when they are the same length and contain the same sequence of characters. For class instances, you can define the __cmp__ method a...

Ngày tải lên: 14/12/2013, 14:15

32 366 0
Tài liệu Dive Into Python-Chapter 6. Exceptions and File Handling doc

Tài liệu Dive Into Python-Chapter 6. Exceptions and File Handling doc

... with for Loops Chapter 6. Exceptions and File Handling In this chapter, you will dive into exceptions, file objects, for loops, and the os and sys modules. If you've used exceptions ... file handling code in the fileinfo.py sample code from teh previous chapter. This example shows how to safely open and read from a file and gracefully handle errors. Example 6.6...

Ngày tải lên: 26/01/2014, 08:20

50 415 0
Tài liệu Dive Into Python-Chapter 10. Scripts and Streams docx

Tài liệu Dive Into Python-Chapter 10. Scripts and Streams docx

... 10.2. Standard input, output, and error UNIX users are already familiar with the concept of standard input, standard output, and standard error. This section is for the rest of you. Standard ... sys.stdout.write(&apos ;Dive in') 2 Dive inDive inDive in >>> for i in range(3): sys.stderr.write(&apos ;Dive in') 3 Dive inDive inDive in 1 As you saw in Ex...

Ngày tải lên: 26/01/2014, 08:20

49 378 0
Tài liệu Dive Into Python-Chapter 4. The Power Of Introspection ppt

Tài liệu Dive Into Python-Chapter 4. The Power Of Introspection ppt

... 4. 15. Introducing and >>> 'a' and 'b' 'b' >>> '' and 'b' '' >>> 'a' and 'b' and ... information about the __builtin__ module. And guess what, Python has a function called info. Try it yourself and skim through the list now. We'll dive into some of the more...

Ngày tải lên: 14/12/2013, 14:15

45 653 0
Tài liệu Dive Into Python-Chapter 7. Regular Expressions doc

Tài liệu Dive Into Python-Chapter 7. Regular Expressions doc

... accept:  800 -55 5-1212  800 55 5 1212  800 .55 5.1212  (800) 55 5-1212  1-800 -55 5-1212  800 -55 5-1212-1234  800 -55 5-1212x1234  800 -55 5-1212 ext. 1234  work 1-(800) 55 5.1212 #1234 Quite ... >>> phonePattern.search('800 -55 5-1212').groups() ('800', &apos ;55 5', '1212') >>> phonePattern.search('800 -5...

Ngày tải lên: 14/12/2013, 14:15

23 358 0
Tài liệu Dive Into Python-Chapter 9. XML docx

Tài liệu Dive Into Python-Chapter 9. XML docx

... n-with-a-tilde-over-it (241), and u-with-two-dots-over- it ( 252 ). And unicode uses the same characters as 7-bit ASCII for 0 through 127, and the same characters as ISO-8 859 -1 for 128 through 255 , and then extends ... actually a list of 5 objects: 3 Text objects and 2 Element objects. The first child is a Text object representing the carriage return after the '&l...

Ngày tải lên: 14/12/2013, 14:15

22 412 0
Tài liệu Dive Into Python-Chapter 8. HTML Processing doc

Tài liệu Dive Into Python-Chapter 8. HTML Processing doc

... download/diveintopython-html -5. 0.zip download/diveintopython-pdf -5. 0.zip download/diveintopython-word -5. 0.zip download/diveintopython-text -5. 0.zip download/diveintopython-html-flat -5. 0.zip ... subclasses SGMLParser and provides all 8 essential handler methods: unknown_starttag, unknown_endtag, handle_charref, handle_entityref, handle_comment, handle_pi, handle_decl, and...

Ngày tải lên: 26/01/2014, 08:20

66 298 0
Tài liệu Dive Into Python-Chapter 11. HTTP Web Services doc

Tài liệu Dive Into Python-Chapter 11. HTTP Web Services doc

... urllib.urlopen('http://diveintomark.org/xml/atom.xml').read() connect: (diveintomark.org, 80) 2 send: ' GET /xml/atom.xml HTTP/1.0 3 Host: diveintomark.org 4 User-agent: Python-urllib/1. 15 5 ' ... 'last-modified': 'Thu, 15 Apr 2004 19: 45: 21 GMT', 'etag': '"e842a-3e53 -55 d97640"', 'content-length':...

Ngày tải lên: 26/01/2014, 08:20

60 365 0
Tài liệu java Data Access JDBC, JNDI, and JAXP pptx

Tài liệu java Data Access JDBC, JNDI, and JAXP pptx

... 100000. 75 1989−09−16 100 41987 654 1 Larry 150 0. 75 2001−03− 05 200 312 654 987 Lori 2000. 95 1999−01−11 300 123 456 789 Jimmy 3080. 05 1997−09−07 400 987 654 321 John 4 351 .27 1996−12−31 50 0 53 7642 256 Andy ... 254 Executing SQL commands using rowsets 255 Fetching data from a rowset 256 Traversing data in a rowset 256 Controlling scrollable and updateable properties 257...

Ngày tải lên: 10/12/2013, 02:15

389 572 3
w