Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 1.1 SQLite
- example above, the method takes only the database name as the argument. This means that the database wil... .db')</code> It's also possible to use a special name, '':memory:'', which creates a database in RAM: <... onsist of only one table called tasks: * id * name * priority To create the above table, we’ll nee... tax looks like this: <code sql>CREATE TABLE table_name ( column1 datatype, column2 datatype, column3 dat
- 4.1 Logging in Python
- ll the ''getLogger'' function without providing a name. The root logger is at the highest point in the h... s place in the hierarchy is assigned based on the names passed to the ''getLogger'' function. <code pyt... .world') recommended_logger = logging.getLogger(__name__) </code> Logger names are similar to the names of the Python modules in which the dot separator is u
- 3.1 The CSV module in Python
- '' that stores contacts from a phone: <code csv> Name,Phone mother,222-555-101 father,222-555-102 wife,... above file, there are four contacts consisting of name and phone number. Note that the first line contai... It should produce the following output: <code> ['Name', 'Phone'] ['mother', '222-555-101'] ['father', '... </code> What happened? We've passed an open file named ''contacts.csv'' and a separator used to separat
- 5.1 The configparser module
- s. It consists of sections that are identified by names enclosed in square brackets. The sections contai... host = localhost # This is a comment. [mariadb] name = hello user = user password = password [redis] ... t to the MariaDB database. These are the database name, username, and password. The last section contains ''Redis'' configuration data, consisting of the por
- 2.1 File processing - XML files
- e the alias ET, but of course you can give it any name you like. To create a tree (an ''ElementTree'' ob... owing properties: **tag** – this returns the tag name as a string **attrib** – this returns all attrib... ']'' call. Its use is very simple: just enter the name of the attribute and optionally (as a second argu... } </code> The ''set'' method takes the attribute name and its value as arguments. In our case, we use i