Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 5.1 The configparser module
- = 5.1 The configparser module == Introduction to the configparser module Currently, many popular services provide an... tly in the code. A better solution is to use the configuration file, which will be read by the code. I... hon, this is possible thanks to a module called ''configparser''. The ''configparser'' module is avail
- 1.1 SQLite
- counts, and existing users add or share different content. You’ve surely noticed that the data sent to ... ble? Data is simply information about users, the contents of their posts, and comments. The data are a... tion, you send the application your account data, consisting of email address, login, and password, and when you add new posts you send content that will be visible to other users. Sent dat
- 4.1 Logging in Python
- itor. <code python> import logging logging.basicConfig() logger = logging.getLogger() logger.critic... els are not displayed. This is due to the default configuration, which we'll talk about in a moment. **NOTE**: The ''basicConfig'' method will be discussed later in the course... ember that it's responsible for the basic logging configuration. == The setLevel method The root logge
- 3.1 The CSV module in Python
- text file with the .csv extension. A typical file contains comma-separated values, but other separators... Let's look at a simple example of a file called ''contacts.csv'' that stores contacts from a phone: <code csv> Name,Phone mother,222-555-101 father,222-555... 55-104 </code> In the above file, there are four contacts consisting of name and phone number. Note th
- 2.1 File processing - XML files
- zation. Let's look at what elements XML documents contain: * **prolog** – the first (optional) line o... the XML document must have one root element that contains all other elements. In the example below, th... ent is the ''data'' tag. * **elements** – these consist of opening and closing tags. The elements inc... es** – these are placed in the opening tags. They consist of key-value pairs, e.g., ''title = "The Litt