Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 4.1 Logging in Python
- most often used to find the cause of an error. By default, Python and its modules provide many logs in... y use. If something goes wrong, you'll be able to determine in which browsers the problem is occurring... tant logs and those reporting a serious error. By default, the following logging levels are defined: * CRITICAL: 50 * ERROR: 40 * WARNING: 30 * IN
- 1.1 SQLite
- ng a database structure; * inserting, updating, deleting, and searching data; * ensuring data secu... rface compliant with the DB-API 2.0 specification described by [[https://peps.python.org/pep-0249/|PEP... The purpose of the DB-API 2.0 specification is to define a common standard for creating modules to wor... QL, and our favorite SQLite. The SQL language was developed in the 70s by IBM. Over the years, SQL has
- 2.1 File processing - XML files
- col. One of its main advantages is the ability to define your own tags that make the document more rea... rsion="1.0" encoding="ISO-8859-2"?> ''changes the default character encoding (UTF-8) to ISO-8859-2. ... itle="The Little Prince"> <author>Antoine de Saint-Exupéry</author> <year>1943</year> ... rst, we need to import the appropriate module and define an alias for it. It's common to use the alias
- 5.1 The configparser module
- ed by a semicolon '';'' or hash ''#'': <code ini>[DEFAULT] host = localhost # This is a comment. [mar... = 0</code> Our configuration file contains the ''DEFAULT'', ''mariadb'' and ''redis'' sections. The ''DEFAULT'' section is slightly different because it contains the default values that can be read in the other section
- 3.1 The CSV module in Python
- nally, in the first line we can put a header that describes this data. Let's look at a simple example ... ='') as csvfile: reader = csv.reader(csvfile, delimiter=',') for row in reader: print(... cond argument can be omitted if our file uses the default separator, which is a comma - we've added it... ='') as csvfile: reader = csv.reader(csvfile, delimiter=',') for row in reader: print(