Cerca

Heus ací els resultats de la cerca.

2.3 Extended function argument syntax
16 Resultats, Darrera modificació:
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
2.5 Different faces of Python methods
10 Resultats, Darrera modificació:
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.4 Decorators
5 Resultats, Darrera modificació:
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
2.9 Inheriting properties from built-in classes
2 Resultats, Darrera modificació:
our validateIBAN(iban) function: * requires a parameter; it is a string to check whether it contains... delivered the method update() which iterates the parameters passed, and for each correct pair calls the
1.1 Classes, Instances, Attributes, Methods — introduction
1 Resultats, Darrera modificació:
use round parentheses () and eventually pass some parameters, just like functions. This is a very impor
1.2 Working with class and instance data – instance variables
1 Resultats, Darrera modificació:
eight. Your application should keep track of two parameters: * the number of apples processed, store
2.1 Python core syntax
1 Resultats, Darrera modificació:
tion, but limit it to hours, minutes, and seconds parameters; * the %%__str__%% method should return a
4.3 Making Python objects persistent using the shelve module
1 Resultats, Darrera modificació:
ag='w') </code> The meaning of the optional flag parameter: {{:info:cursos:pue:python-pcpp1:pasted:2023
5.1 Metaprogramming
1 Resultats, Darrera modificació:
is that this technique could be used for tool preparation; those tools could be applied to your code to