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

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

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

... >>> xmldoc = minidom.parse('~/diveintopython/common/py/kgp/binary.xml') >>> xmldoc <xml.dom.minidom.Document instance at 010BE87C> >>> print xmldoc.toxml() ... nodes >>> xmldoc.childNodes [<DOM Element: grammar at 175 38908>] >>> xmldoc.childNodes[0] <DOM Element: grammar at 175 38908> >>> xmldoc.fi...
Ngày tải lên : 14/12/2013, 14:15
  • 22
  • 407
  • 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

... Chapter 7. Regular Expressions Regular expressions are a powerful and standardized way of searching, replacing, and parsing text with complex patterns of characters. If you've used regular expressions ... that can help keep your expressions maintainable. 7. 5. Verbose Regular Expressions So far you've just been dealing with what I'll call “compact” regul...
Ngày tải lên : 14/12/2013, 14:15
  • 23
  • 356
  • 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

... as you'll see shortly. 4.3.2. The str Function The str coerces data into a string. Every datatype can be coerced into a string. Example 4.6. Introducing str >>> str(1) '1' ... string.join <function join at 00C55A7C> >>> callable(string.punctuation) False >>> callable(string.join) True >>> print string.join._ _doc_ _ joi...
Ngày tải lên : 14/12/2013, 14:15
  • 45
  • 651
  • 0
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

... 63, 93, stripnulls), "year" : ( 93, 97, stripnulls), "comment" : ( 97, 126, stripnulls), "genre" : (1 27, 128, ord)} >>> import fileinfo >>> ... this, and it's called copy. I won't go into the details here (though it's a wicked cool module, if you're ever inclined to dive into it on your own). Suffice it t...
Ngày tải lên : 14/12/2013, 14:15
  • 32
  • 365
  • 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

... ( 63, 93, stripnulls), "year" : ( 93, 97, stripnulls), "comment" : ( 97, 126, stripnulls), "genre" : (1 27, 128, ord)} 1 . . . if tagdata[:3] == "TAG": ... ***DJ MARY-JANE*** Rave Mix 2000http://mp3.com/DJMARYJANE \0 37& apos; >>> f.tell() 5 75 430 37 1 A file object maintains state about the file it has open. The tell meth...
Ngày tải lên : 26/01/2014, 08:20
  • 50
  • 414
  • 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

... appendix/history.html 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 ... <title> ;Dive Into Python</title> <link rel='stylesheet' href='diveintopython.css' type='text/css'> <link rev='mad...
Ngày tải lên : 26/01/2014, 08:20
  • 66
  • 296
  • 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

... range(3): print &apos ;Dive in' 1 Dive in Dive in Dive in >>> import sys >>> for i in range(3): sys.stdout.write(&apos ;Dive in') 2 Dive inDive inDive in >>> ... 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 Example 6.9, “Simple Counters”, you...
Ngày tải lên : 26/01/2014, 08:20
  • 49
  • 377
  • 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 ... opener.open(request).read() 3 connect: (diveintomark.org, 80) send: ' GET /xml/atom.xml HTTP/1.0 Host: diveintomark.org User-agent: OpenAnything/1.0 +http://diveintopython....
Ngày tải lên : 26/01/2014, 08:20
  • 60
  • 364
  • 0
Tài liệu Lab 9.3.7 Workstation ARP doc

Tài liệu Lab 9.3.7 Workstation ARP doc

... Lab 9.3 .7 Workstation ARP Objective • Introduce Address Resolution Protocol (ARP) and the arp –a workstation ... connection. Step 1 Establish a network connection 1 - 4 CCNA 1: Networking Basics v 3.0 - Lab 9.3 .7 Copyright  2003, Cisco Systems, Inc. If the connection to the Internet is dial-up, connect ... delivering each of the pings to the URLs? ______ 2 - 4 CCNA 1: Network...
Ngày tải lên : 11/12/2013, 14:15
  • 4
  • 281
  • 0
Tài liệu Khám phá Windows 7 (Phần 3) doc

Tài liệu Khám phá Windows 7 (Phần 3) doc

... Windows 7 đó chính là công cụ có tên Tweak.com Logon Changer for Windows 7 có cách sử dụng khá đơn giản và trực quan. Với phần mềm này, bạn có thể thay đổi cả logon đăng nhập trong Windows 7 lẫn ... lượng Recent Documents dễ dàng + Một cửa sổ hiện ra có tên Customize Start Menu, bạn tìm đến dòng Number o f recent items to display in Jump Lists và đặt số lượng tập tin Recent Docume...
Ngày tải lên : 12/12/2013, 04:15
  • 6
  • 470
  • 6

Xem thêm

Từ khóa: