Cerca

Heus ací els resultats de la cerca.

4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
23 Resultats, Darrera modificació:
nction, and method definition in order to provide information about the functionality of a larger piece ... purpose is to simplify the code, provide precise information, and help to understand the intention of a... e precise – don't include irrelevant or reduntant information; and most of all – try to design and write... hat allows you to equip your code with additional information without using comments. It's an optional,
1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
19 Resultats, Darrera modificació:
ings: <code ; output> messagebox.showinfo(title, info) </code> * the **first** string will be used b... can use the ''\n'' digraph to visually break the info into separate lines. We’ll ask the ''showinfo()'... sagebox def clicked(): messagebox.showinfo("info", "some\ninfo") window = tkinter.Tk() button_1 = tkinter.Button(window, text="Show info", command=clicked) button_1.pack() button_2 = tki
4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
19 Resultats, Darrera modificació:
default, Python and its modules provide many logs informing you of the causes of errors. However, it's g... t system. When users visit your site, you can log information about the browsers they use. If something ... * CRITICAL: 50 * ERROR: 40 * WARNING: 30 * INFO: 20 * DEBUG: 10 * NOTSET: 0 Each level has a... e') logger.warning('Your WARNING message') logger.info('Your INFO message') logger.debug('Your DEBUG mes
2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
18 Resultats, Darrera modificació:
t we'll discuss this issue more a bit later. {{ :info:cursos:pue:python-pcpp1:pasted:20231013-035718.pn... ngs in Python) Can you see the diamond there? {{ :info:cursos:pue:python-pcpp1:pasted:20231013-040047.pn... h classes B and C. If you want to call the method info(), which part of the code would be executed then?... output of the code? <code python>class A: def info(self): print('Class A') class B(A):
2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
17 Resultats, Darrera modificació:
s the hypotenuse of a right-angled triangle. {{ :info:cursos:pue:python-pcpp1:m2:pasted:20231105-125607... nd ''bananas'' from the //fruit.py// module. {{ :info:cursos:pue:python-pcpp1:m2:pasted:20231105-125726... ort the ''numbers'' list in ascending order. {{ :info:cursos:pue:python-pcpp1:m2:pasted:20231105-125948... mple: Perform five additions of two numbers. {{ :info:cursos:pue:python-pcpp1:m2:pasted:20231105-130120
2.1 Python core syntax @info:cursos:pue:python-pcpp1:m1
11 Resultats, Darrera modificació:
ook at the last lines of the output – it contains information about the __abs__ and __add__ special meth... ersal map, unrelated to any special data type. {{:info:cursos:pue:python-pcpp1:pasted:20231013-031457.png}} {{:info:cursos:pue:python-pcpp1:pasted:20231013-031512.png}} {{:info:cursos:pue:python-pcpp1:pasted:20231013-031526.pn
1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
11 Resultats, Darrera modificació:
communicate with the web service using JSON as an information carrier. Unfortunately, our knowledge need... almost the same in all the above platforms. {{ :info:cursos:pue:python-pcpp1:m4:pasted:20240118-101226... elp screen similar to the one presented here: {{ :info:cursos:pue:python-pcpp1:m4:pasted:20240118-101242... d the JSON file cars.json from here: Download {{ :info:cursos:pue:python-pcpp1:m4:e845c414d155078681778a
Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
10 Resultats, Darrera modificació:
als of the time – in a strictly textual way. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231219-025303... pplication can be visible on screen at once. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231219-075011... . It's one of the typical window decorations. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-020402... he location of these buttons is OS-dependent. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-020429
1.7 Visiting widgets’ properties @info:cursos:pue:python-pcpp1:m3
10 Resultats, Darrera modificació:
string, although it specifies strictly numerical information; * the three-element tuple uses the thir... ou do! The property responsible for storing font information is – obviously – named ''font''. We’ve us... ur favorite ones. Our fonts look like this: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231228-035000... of text if the widget is able to present textual information). The list of widget sizes is gathered in
1.5 A simple GUI application @info:cursos:pue:python-pcpp1:m3
9 Resultats, Darrera modificació:
al will look like the vision presented below: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110659... ode> Our window looks like this one for now: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110745... -clickable widget able to **present short textual information**, passed to the widget's constructor usin... window. Let's welcome Label into our window: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110856
1.1 SQLite @info:cursos:pue:python-pcpp1:m5
9 Resultats, Darrera modificació:
Do you know how that’s possible? Data is simply information about users, the contents of their posts, and comments. The data are all kinds of information that we can send to the application. Durin... ssed. This place is a database, which is a set of information stored on a disk in a computer system. Acc... ions (on both Android and iOS platforms) to store information about their status. In addition, it's used
1.3 Settling widgets in the window's interior @info:cursos:pue:python-pcpp1:m3
8 Resultats, Darrera modificació:
ys aware of the window it belongs to (it gets the information from the constructor's very first argument... dow. Yes, this is what we expected, isn't it? {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-035604... 50) window.mainloop() </code> Yes, we can! {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231222-035713... puzzle? Did you imagine the window that way? {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-103426
2.5 Working with the Canvas @info:cursos:pue:python-pcpp1:m3
8 Resultats, Darrera modificació:
f the code responsible for all these actions? {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-121855... nvas. The most usable of them are as follows: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-121919... eresting create_line() options are as follows: {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-122155... n you predict what the result will look like? {{:info:cursos:pue:python-pcpp1:m3:pasted:20231228-122235
3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
7 Resultats, Darrera modificació:
* You can run it on a file or files to obtain information about non-conformance (and indicate errors... the source code and their frequency). * More information: https://github.com/PyCQA/pycodestyle ... e code which require formatting fixes. * More information: https://pypi.org/project/autopep8/ * PE... ery same module we’ve just described). * More information: http://pep8online.com/about == Recommend
1.4 Coloring your widgets @info:cursos:pue:python-pcpp1:m3
6 Resultats, Darrera modificació:
ork? Let's check. Yes, it definitely does: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-105209... ow.mainloop() </code> This is what we get: {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-105841... ce of the colors), we get white as a result. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110037... of the primary colors – red, green or blue. {{ :info:cursos:pue:python-pcpp1:m3:pasted:20231223-110114
4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
5 Resultats, Darrera modificació:
1.1 What is PEP? @info:cursos:pue:python-pcpp1:m2
5 Resultats, Darrera modificació:
1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
5 Resultats, Darrera modificació:
1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
5 Resultats, Darrera modificació:
5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
4 Resultats, Darrera modificació:
1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
3 Resultats, Darrera modificació:
1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
3 Resultats, Darrera modificació:
2.6 Abstract classes @info:cursos:pue:python-pcpp1:m1
2 Resultats, Darrera modificació:
1.9 Looking at variables @info:cursos:pue:python-pcpp1:m3
2 Resultats, Darrera modificació:
5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
2 Resultats, Darrera modificació:
2.5 Different faces of Python methods @info:cursos:pue:python-pcpp1:m1
1 Resultats, Darrera modificació:
2.7 Encapsulation @info:cursos:pue:python-pcpp1:m1
1 Resultats, Darrera modificació:
1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
1 Resultats, Darrera modificació:
3.1 The CSV module in Python @info:cursos:pue:python-pcpp1:m5
1 Resultats, Darrera modificació: