Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 1.1 SQLite
- brary enclosed in one source file. SQLite also supports transactions, which are a set of database opera... on. In this part of the course, you'll have the opportunity to learn about a new module that will allow... en by you. To use the sqlite3 module, you must import it in your script: <code python>import sqlite3</code> NOTE: The sqlite3 module has been available in
- 5.1 The configparser module
- standard library. To start using it, we need to import the appropriate module: <code python>import configparser</code> However, before we start reading th... = hello user = user password = password [redis] port = 6379 db = 0</code> Our configuration file con... s ''Redis'' configuration data, consisting of the port and database number. In addition, both in this s
- 2.1 File processing - XML files
- s a markup language intended for storing and transporting data, e.g., by systems using the SOAP communi... hich we can move up or down. First, we need to import the appropriate module and define an alias for i... it to the parse method as follows: <code python>import xml.etree.ElementTree as ET tree = ET.parse('bo... n argument, takes XML as a string: <code python>import xml.etree.ElementTree as ET root = ET.fromstrin
- 3.1 The CSV module in Python
- nagement tools and the popular Excel offer data import and export in this format. The CSV file is a plain text file with the .csv extension. A typical file... he code in the editor and run it. <code python>import csv with open('contacts.csv', newline='') as cs... he code in the editor and run it. <code python>import csv with open('contacts.csv', newline='') as cs
- 4.1 Logging in Python
- external service. To start logging, we need to import the appropriate module: <code python>import logging</code> In this part of the course, you'll learn... d to the ''getLogger'' function. <code python> import logging logger = logging.getLogger() hello_logg... gging that help you to distinguish between less important logs and those reporting a serious error. By