Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 2.3 Extended function argument syntax @info:cursos:pue:python-pcpp1:m1
- ight have already defined default values for some parameters, so we do not have to pass all arguments as missing arguments, complete with defaults; parameters with default values are presented as keyword parameters; * we can pass arguments in any order if ... other functions that accept arbitrary numbers of parameters, and you can spot them easily when reading
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- ts. PEP 8 recommends that your imports be **on separate lines**, rather than squeezed onto one line: Make sure you insert a blank line to separate each of the above groups of imports. <code pyt... mports** (i.e., imports that use absolute paths separated by full stops). For example: <code python ✔> i... should act like a binary operator) unless a slice parameter is omitted, in which case the space should b
- 3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
- thon == The CSV module in Python The CSV (Comma Separated Values) format is one of the most popular file... e .csv extension. A typical file contains comma-separated values, but other separators such as semicolon or tab are also allowed. It should be emphasized that only one type of separator can be used in one CSV file. Each line in the
- 2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
- ce methods**. The instance methods, as the first parameter, take the ''self'' parameter, which is their hallmark. It’s worth emphasizing and remembering that... ssible thanks to using ''self''. The name of the parameter ''self'' was chosen arbitrarily and you can ... ss method definition. * Additionally, the first parameter of the class method is ''cls'', which is use
- 2.3 A small lexicon of widgets - Part 3 @info:cursos:pue:python-pcpp1:m3
- contents in a more readable way, you can add a separator to it. This is done by a method named... ''add_separator()'', of course. <code python> import tkinter ... el="Open...", underline=0, command=open_file) # separator is here! sub_menu_file.add_separator() sub_menu_file.add_command(label="Quit", underline=0, command=
- 4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
- a module's or function's behavior, the meaning of parameters, or the purpose of a specific package.| Of... uld not just simply repeat the function or method parameters. For example: <code python ❌>def my_functio... he next line. The end quotes should be put on a separate line. Important notes: * a multi-line docst... _number, is_autonomous=True): """ Parameters: ----------- vehicle_type:
- Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
- you needed to have a specialized and completely separate device called a **terminal**. The terminal need... us at the moment, but the traditional programming paradigm in which the programmer is responsible for re... obliged not only to control each of the widgets separately, but also their pair, triple, and so on. Let... t in a more fashionable way) it needs a different paradigm. This paradigm exists, and is widely applied
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- se management systems, SQLite doesn't require a separate server process to be running in order to commun... ethod takes any single SQL statement and optional parameters necessary to execute the query. The variant with optional parameters will be presented when we discuss inserting... ' used in the ''INSERT INTO'' statement are query parameters that are replaced with the correct values d
- 1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
- ''\n'' digraph to visually break the info into separate lines. We’ll ask the ''showinfo()'' function t... et’s constructor is equipped with the ''command'' parameter, which is used to bind a callback. The wind... neither** a command **property nor a constructor parameter of that name**. Fortunately, you’re still a... back designed for usage with the command property/parameter is a **parameterless** function; * a callb
- 1.3 Settling widgets in the window's interior @info:cursos:pue:python-pcpp1:m3
- st argument). The most usable ''place()'' method parameters are as follows (all of them are passed as k... t's desired **height** measured in pixels; if the parameter is omitted, the widget's height will be dete... et's desired **width** measured in pixels; if the parameter is omitted, the widget's width will be deter... try it. The most commonly used ''grid()'' method parameters are gathered below (as, previously, all of
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- y named ''prop''. Note the ''?'' character – it separates the resource identification from additional request parameters. Let's try it. Look at the code in the edi... der=desc </code> Note the ''&'' character – it separates additional request parameters from each other. The amended code is in the editor. <code python> im
- 2.4 Decorators @info:cursos:pue:python-pcpp1:m1
- function (i.e., the **decorated** function) as a parameter to the decorating function so that the **dec... ing** function does more, because it can take the parameters of the decorated function and perform addit... is more interesting as it accepts an object as a parameter, displays a ''__name__'' attribute value of the parameter, and returns an accepted object. We have cr
- 1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
- package and you will still have to import them separately. As you already now, such an import will forc... itemized** by importing each of the facilities separately – just like this: <code python>from tkinter i... called – don't be afraid – ''destroy()''. It's a parameterless method, as destroying needs (in contrast... ction. The handler used by the button has to be a parameterless function of any name. Don't forget that
- 1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
- he site (e.g., //www.site.com //) preceded by the parameter name (i.e., ''Host:'') * a line containing a parameter named ''Connection:'' along with its value c... e the connection by expressing it literally. The parameterless ''close()'' method will do it for us - s... t do we see here actually? In fact, we see two separate parts: * the first is the response header. W
- 1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
- ts) to delimit array content and uses commas to separate an array's elements – just like here: <code rub... tion is a ''name:value'' pair with a colon as a separator where the name **must be enclosed in quotes**.... ON object is a **set of property specifications separated by commas**. One important (and very surprisi... fy all of them in **any order** using commas to separate the items from each other. As JSON ignores whit