Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- evel_function(): return None </code> * **a single blank line** to surround method definitions in... ommas. === String quotes Python allows us to use single-quoted (e.g., 'a string') and double-quoted (e... gs. This means that: * if your string contains single-quote characters, it’s recommended that you us... e-quote characters, it’s recommended that you use single-quoted strings. In the case of triple-quoted
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
- cle** classes. == Inheritance and polymorphism — Single inheritance vs. multiple inheritance There are... nheritance should be used with more prudence than single inheritance because: * a single inheritance class is always simpler, safer, and easier to unders... enting multiple inheritance you are violating the single responsibility principle; If your solution ten
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- : The sqlite3 module has been available in Python since version 2.5. == sqlite3 – creating a database As we already said, the SQLite database is a single file, which is saved on your computer. Each fi... ce a standard that would standardize its syntax. Since the first production deployments, the following... in our database. The ''execute'' method takes any single SQL statement and optional parameters necessar
- Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
- Touch screens may offer something more: tapping (single or double or even more complex), swiping, and ... ed to pay for anything) * it has been developed since 1991 (which means it’s stable and mature) * i... u’ve been using TkInter for a long time, actually since your very first encounter with programming in P
- 4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
- ist = [(1,2,3) for x in range(1_000_000)] print('Single reference copy') time_start = time.time() b_li... st it locally on your computer. /<code ; output> Single reference copy Execution time: 0.0 Memory chun
- 2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
- class, each method – each entity – should have a single cohesive responsibility**. Why? Because such a... t several times, but it will never be perfect. No single thing can, and you must be aware of that. If y
- 4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
- lighting errors before your code is executed. * Since type hints have no effect on the source code, t... docstrings (in the sense of stand-alone programs/single file executables) should document the script's
- 1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
- s a character device** - a device that can handle single characters, as we are interested in transferri... s to receive; the root document is specified as a single slash (i.e., /); the line must also include th
- 2.1 File processing - XML files @info:cursos:pue:python-pcpp1:m5
- e tag as a dictionary. To retrieve the value of a single attribute, use its key, e.g., ''child.attrib [... ich allows us to debug either the whole tree or a single element. == Building an XML document (part 2)
- 3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
- read each row using the ''for'' loop. Note that a single line is returned as a list of strings. However... with the ''quotechar'' argument, which must be a single character. Look at the code in the editor and
- 2.4 Decorators @info:cursos:pue:python-pcpp1:m1
- passed * ''warehouse_decorator'' – which wraps single items into different materials. We’ve also cr
- 2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
- t exception, * Implement a class representing a single bank account, * This class should control ac
- 4.3 Making Python objects persistent using the shelve module @info:cursos:pue:python-pcpp1:m1
- ickle module is used for serializing objects as a single byte stream. Both serializing and deserializin
- 1.3 Settling widgets in the window's interior @info:cursos:pue:python-pcpp1:m3
- parameter defaults to 1 (the widget won't cross a single grid's cell) * ''rowspan=rs'' – works as col
- 1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
- to let the user enter simple, one-line data, like single numbers, names, addresses, etc. We’ve added o