Cerca

Heus ací els resultats de la cerca.

1.7 Four magic letters: CRUD
33 Resultats, Darrera modificació:
interface provided to the user (you) will always look the same. We can say that that's what REST was... ain. We’re ready to start now. Open the console, locate the directory where your cars.json is located and launch the server: <code bash>json-server --wat... t) document, which is completely useless to us. Look at the code in the editor. It's very basic so f
1.6 Making life easier with the requests module
25 Resultats, Darrera modificació:
d**. It's too choosy and too powerful. It exposes lots of details which aren't necessary available at ... ox** for us, and we don't want to persuade you to look inside it. Okay. Let's start. First of all, w... un the Windows installer (a file with a name that looks like ''node-vxx.yy.z-x86.msi'') from the LTS //(Long Time Support//) branch; accept all the default
1.2 How to use sockets in Python
18 Resultats, Darrera modificació:
Because** there can be more than one HTTP server located at the same IP address** - the server you wi... onnected to its counterpart on the server's side. Look at the code in the editor - this is how we perf... pecific for the INET domain**. Don't expect it to look the same in other domains. You may ask - why 8... ion attempt will fail? Of course it is. There are lots of possible reasons: a malformed address of the
1.1 Python Professional Course Series: RESTful APIs
16 Resultats, Darrera modificació:
Some words about REST The word you see below may look a little enigmatic: REST Are we going to convi... chinery (do not take this literally) which drives lots of contemporary computer systems, especially th... sentational * **S**tate * **T**ransfer Let's look at them separately. === Representational **RE... where else, not on your computer, but on a server located over the hill and far away. Of course, you c
1.4 Talking to JSON in Python
16 Resultats, Darrera modificació:
python-pcpp1:m4:pasted:20240112-030457.png }} It looks simple and consistent. So where’s the trap? ... ring and to turn it into Python data** is named ''loads()'' – it takes a string (hence the s at the en... ort json jstr = '16021766189.98' electron = json.loads(jstr) print(type(electron)) print(electron) </... ut> <class 'float'> 16021766189.98 </code> The ''loads()'' function is able to cope with **strings**,
1.5 What is XML and why do we prefer to use JSON?
15 Resultats, Darrera modificació:
ere invented for nearly the same purpose. Take a look – it's a simple sample XML document: <code xml>... e inside your XML document. The definition may be located anywhere: it can be placed beforehand at the... parsing server, or it may be put in any Internet location (in this case the DOCTYPE line contains the full URL/URI of the DTD). To make a long story short, the DOCTYPE line contains: * the
1.3 JSON – our new friend
6 Resultats, Darrera modificació:
T world. We bet four of them will be TLA. And – look! – TLA is a TLA too. What a coincidence! Now i... acronym we'll present to you now is four letters long. What a nice change! Let us explain its meanin... old their properties), JSON offers a syntax which looks like a close relative of Python's dictionary, ... is in the following way: <code json> 123 </code> Looks familiar, doesn't it? Don’t get carried away j
2.1 Python Professional Course Series: Lab & Assessment
1 Resultats, Darrera modificació:
wer[:answer.find('\r')]) </code> == Lab 2 Take a look at these two screenshots. They present two diff