Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 1.1 SQLite
- tems on the market. The most popular of them include: * Free: MySQL, PostgreSQL, SQLite * Paid: Or... hat have the same necessary equipment, but were made by other manufacturers. It's exactly the same wit... te3 module, you must import it in your script: <code python>import sqlite3</code> NOTE: The sqlite3 module has been available in Python since version 2.5.
- 2.1 File processing - XML files
- it's parsed into a tree structure in which each node is an object. * **xml.sax** – SAX is an acronym... st of opening and closing tags. The elements include text, attributes, and other child elements. In th... XML tag must have a corresponding closing tag. <code xml><?xml version="1.0"?> <data> <book title="The Little Prince"> <author>Antoine de Saint-Exupéry</author> <year>1943</year>
- 4.1 Logging in Python
- an error. By default, Python and its modules provide many logs informing you of the causes of errors. ... ng, we need to import the appropriate module: <code python>import logging</code> In this part of the course, you'll learn how to create logs using the l... e names passed to the ''getLogger'' function. <code python> import logging logger = logging.getLogge
- 3.1 The CSV module in Python
- acts.csv'' that stores contacts from a phone: <code csv> Name,Phone mother,222-555-101 father,222-555... 02 wife,222-555-103 mother-in-law,222-555-104 </code> In the above file, there are four contacts cons... built-in function called ''open''. Look at the code in the editor and run it. <code python>import csv with open('contacts.csv', newline='') as csvfile:
- 5.1 The configparser module
- rser module Currently, many popular services provide an API that we can use in our applications. Integ... in our application. It's not a good idea to hardcode them directly in the code. A better solution is to use the configuration file, which will be read by the code. In Python, this is possible thanks to a module c