Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 4.1 Logging in Python
- it can also be an output stream, or even an external service. To start logging, we need to import the ... = The Logger object One application may have several loggers created both by us and by programmers of ... the source of the logged message. **NOTE**: Several calls to the ''getLogger'' function with the same... e following logging levels are defined: * CRITICAL: 50 * ERROR: 40 * WARNING: 30 * INFO: 20
- 1.1 SQLite
- = 1.1 SQLite == What is a database? Nowadays, social applications such as Facebook, Twitter, and Insta... llo.db')</code> It's also possible to use a special name, '':memory:'', which creates a database in R... e** for creating, modifying, and managing relational databases. It’s used by the most popular database... 's not difficult to guess that these will be textual values. For this purpose, we’ll use the ''TEXT''
- 3.1 The CSV module in Python
- a plain text file with the .csv extension. A typical file contains comma-separated values, but other s... the Python Standard Library. However, for commercial projects, we recommend using an excellent library... imiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL) writer.writerow(['Name', 'Phone']) ... should be quoted. The default value ''QUOTE_MINIMAL'' means that only values with special characters
- 2.1 File processing - XML files
- uments contain: * **prolog** – the first (optional) line of the document. In the prolog, you can spe... e precisely, the ''Element'' class, provides several useful methods for finding elements in an XML doc... of the tag to be created, while the second (optional) is the attribute dictionary. In the example in t... nd one defines the tag name, and the third (optional) defines the attributes of the element. Let's see
- 5.1 The configparser module
- it's also possible to pass a list containing several files. If all goes well, the ''read'' method ret