Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- iefs and practices. In our case, it means we must not forget about one simple but important observatio... times be a better option. If the style guides are not applicable to your project, it may be better to ... ode and make it PEP 8 compliant.) * If there is no good reason for making the code PEP 8 compliant, ... it on a file or files to obtain information about non-conformance (and indicate errors in the source c
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- = 1.7 Four magic letters: CRUD == Entering a non-existing/malformed address We’ve reached the point in... ue:python-pcpp1:m4:pasted:20240119-023906.png }} Note – this is a four-letter acronym which makes it ... data is implemented by the DELETE HTTP method. Now we’re ready to carry out some simple but instruc... escribed by: * ''id'' – a unique item number; note – each item in the collection must have the pro
- 2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
- or features) included in the Python interpreter. Now let’s see the magic. Go to the editor window, ty... we must remember that a nicely-written program is not only more enjoyable to read, but also more **rea... s a better way to implement the functionality. If not, think about leaving a comment in code to explai... tand your code. In Python, it’s preferred to use not only the simplest way to express a programming i
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- = 1.1 SQLite == What is a database? Nowadays, social applications such as Facebook, Twitter, and Insta... ers add or share different content. You’ve surely noticed that the data sent to those applications are... ite databases. Can you guess what it’s called? If not, don't worry, everything will be clear in a mome... n your script: <code python>import sqlite3</code> NOTE: The sqlite3 module has been available in Pytho
- Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
- worry, it won’t take long. We’re going to travel not more than fifty years back. Are you ready? Okay,... to a computer (don’t forget that the Internet had not been invented yet) and was rarely placed in the ... what it was like to work with a computer without not being able to see a picture, not saying a word about movies or animations. No photographs, no selfi
- 1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
- server** we're going to connect to. In fact, it's not our problem. The user knows it better. Let's ask... e IP address** - the server you will reach may be not the server you intended to connect to. It may sound cynical - it's not our problem which of these two ways our users ch... are interested in transferring data byte by byte, not as fixed sized blocks (e.g., a terminal is a cha
- 1.6 Events and how to handle them @info:cursos:pue:python-pcpp1:m3
- ring the proper reactions to the user’s actions. Now it’s time to show you some details of the events... ow you control the event manager’s behavior. For now, however, we want you to focus your attention on... re going to display a whole encyclopedia volume); note: you can use the ''\n'' digraph to visually bre... troy) button_2.pack() window.mainloop() </code> Note the ''\n'' embedded inside the info string. An
- 1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
- amed ''json-server'', implemented on top of the ''Node.js'' environment. ''Node.js'' is – as Wikipedia claims – //an open-source, cross-platform JavaScrip... Okay. Let's start. First of all, we need to have Node.js installed on our computer. The steps you sho... 're a Windows user, point your browser to https://nodejs.org/en/download, download and run the Windows
- 4.1 PEP 257 – Docstring Conventions @info:cursos:pue:python-pcpp1:m2
- e **conventions**, best practices, and semantics (not laws or regulations!) associated with documentin... in Python: ^Comments ^Docstrings^ | Comments are non-executable statements in Python, which means tha... y are ignored by the Python interpreter; they are not stored in the memory, and cannot be accessed dur... , functionality, and capabilities to users who do not necessarily need to know how it works.| |Comment
- 1.2 Let TkInter speak! @info:cursos:pue:python-pcpp1:m3
- as a whole: <code python>import tkinter</code> Note: it won’t allow you to access some modules buil... ll have to import them separately. As you already now, such an import will force you to use the qualif... port tkinter as tk</code> Okay, we know there’s no accounting for taste, but it’s definitely worth a... fe on the edge, you can simplify your import (but not the rest of your work) by using the star as a co
- 1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
- a continuous struggle with acronyms? Well, you’re not alone. We share this opinion. An old anecdote sa... – look! – TLA is a TLA too. What a coincidence! Now it’s time to break this pattern. The acronym we'll present to you now is four letters long. What a nice change! Let u... eaning: * Java... * ...Script * Object * Notation As you can see, there’s a little riddle in
- 1.5 What is XML and why do we prefer to use JSON? @info:cursos:pue:python-pcpp1:m4
- e**. Anyway, this is what it thinks about itself. Note – it isn't a programming language, and although... XML seems to be bloated compared to JSON. We’re not going to teach you how to use XML in Python. We ... d by a very exclusive second-hand car store. It's not a regular store – it's a store with the most leg... **declares that the document contains XML text**. Note the very original “parentheses” in which the li
- 1.1 Python Professional Course Series: RESTful APIs @info:cursos:pue:python-pcpp1:m4
- EST Are we going to convince you to take a rest? Not at all. On the contrary, we want to encourage yo... very demanding and completely new. We'll show you not Python itself, but a very specific kind of machinery (do not take this literally) which drives lots of contem... , plain text. "It must be a joke," you may think now. "How is it possible to send and receive all kin
- 2.3 A small lexicon of widgets - Part 3 @info:cursos:pue:python-pcpp1:m3
- t of cooperating widgets**. The ''Entry'' widget not only presents a line of text, but is also able t... python-pcpp1:m3:pasted:20231228-112558.png}} And now, some of ''Entry''’s methods: {{:info:cursos:pue... this state if its current contents are invalid. Note: we’ve had to use the ''focus_set()'' method, a... Try to modify the code to allow the user to enter not more than five digits. The last part of our sto
- 1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
- Python == Working with the JSON module in Python Now that we're familiar with JSON essentials, it's t... break down complex JSON lines into prime factors. Nothing could be further from the truth! We’re not in the habit of coming up with such crazy ideas, although, to be honest, it's not as complex as it may seem and we're convinced th