Cerca

Heus ací els resultats de la cerca.

4.1 Logging in Python
180 Resultats, Darrera modificació:
= 4.1 Logging in Python == Logging in Python The Python Standard Library provides a useful module called ''logging'' to log events occurring in the application. Logs are most often used to find the cause of an e
5.1 The configparser module
19 Resultats, Darrera modificació:
ices requires authentication using data such as a login and password, or simply an access token. Each... his is done? == What does the configuration file look like? The structure of the configuration file i... n '';'' or hash ''#'': <code ini>[DEFAULT] host = localhost # This is a comment. [mariadb] name = hel... lenames that have been successfully parsed. Let's look at the code in the editor to see how to parse t
1.1 SQLite
18 Resultats, Darrera modificació:
n your account data, consisting of email address, login, and password, and when you add new posts you ... regardless of the operating system used, has its location (a path to a specific disk space). When you... n your current working directory, or in any other location. To create a database, use the ''connect'' ... se only if it cannot find a database in the given location. If a database exists, SQLite connects to i
2.1 File processing - XML files
16 Resultats, Darrera modificació:
andard recommended by the W3C organization. Let's look at what elements XML documents contain: * **p... Let's use it to visit the elements of our tree - look at the code in the editor. <code python>import ... we can access them directly using indexes. Take a look at the example below in which we use the curren... element to retrieve text from its child elements. Look at the code in the editor. <code python>import
3.1 The CSV module in Python
9 Resultats, Darrera modificació:
can put a header that describes this data. Let's look at a simple example of a file called ''contacts... the ''writer'' object. First, we'll take a closer look at reading data using the reader object. The '... , we can use a built-in function called ''open''. Look at the code in the editor and run it. <code py... rt 2) Finally, we read each row using the ''for'' loop. Note that a single line is returned as a list