Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 1.1 SQLite
- = 1.1 SQLite == What is a database? Nowadays, social applications such as Facebook, Twitter, and Insta... ers add or share different content. You’ve surely noticed that the data sent to those applications are... ite databases. Can you guess what it’s called? If not, don't worry, everything will be clear in a mome... n your script: <code python>import sqlite3</code> NOTE: The sqlite3 module has been available in Pytho
- 4.1 Logging in Python
- sily specify the source of the logged message. **NOTE**: Several calls to the ''getLogger'' function ... 40 * WARNING: 30 * INFO: 20 * DEBUG: 10 * NOTSET: 0 Each level has a name and a numeric value... , the logger name and the message you’ve defined. Note that all these values are separated by a colon.... y messages with ''INFO'' and ''DEBUG'' levels are not displayed. This is due to the default configurat
- 2.1 File processing - XML files
- e it's parsed into a tree structure in which each node is an object. * **xml.sax** – SAX is an acron... using the ''xml.etree.ElementTree'' module. Let's not waste any time. Let's go! == What is XML? Exten... e pairs, e.g., ''title = "The Little Prince"''. **NOTE**: Each open XML tag must have a corresponding ... root = ET.fromstring(your_xml_as_string)</code> **NOTE**: The ''fromstring'' method doesn't return the
- 3.1 The CSV module in Python
- our contacts consisting of name and phone number. Note that the first line contains a header to help y... Finally, we read each row using the ''for'' loop. Note that a single line is returned as a list of str... ,222-555-103 mother-in-law,222-555-104 </code> **NOTE**: The ''newline=%%''%%'' argument added to the... print(row['Name'], row['Phone']) </code> **NOTE**: If you define more column names than the val
- 5.1 The configparser module
- ed to store it somewhere in our application. It's not a good idea to hardcode them directly in the cod... d this data using the ''configparser'' module. **NOTE**: The whitespace at the beginning and end of k... hod to display the names of sections in the file. Note that the ''DEFAULT'' section doesn't appear in ... e the appropriate key sequence. It's important to note that the section names are case sensitive, whil