Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 5.1 The configparser module @info:cursos:pue:python-pcpp1:m5
- = hello user = user password = password [redis] port = 6379 db = 0</code> Our configuration file con... s ''Redis'' configuration data, consisting of the port and database number. In addition, both in this s... ') print('Host:', config['redis']['host']) print('Port:', int(config['redis']['port'])) print('Database number:', int(config['redis']['db']))</code> Result
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- the address specified as localhost, listening at port number 3000; * line 5: have we succeeded? * ... ooks like this then:<code ; output> http://server:port/resource/id </code> We’re going to test it now ... n the following way:<code ; output> http://server:port/resource?_sort=property </code> causes the resp... the following way: <code ; output> http://server:port/resource?_sort=property&_order=desc </code> Not
- 2.1 Python Professional Course Series: Lab & Assessment @info:cursos:pue:python-pcpp1:m4
- ver is dead or alive) * (optional) the server's port number (any absence of the argument means that the tool should use port 80) * use the HEAD method instead of GET — it ... - http server's address (required)") print("- port number (defaults to 80 if not specified)") e... K_STREAM) if len(sys.argv) == 3: try: port = int(sys.argv[2]) if not (1 <= port <=
- 1.6 Making life easier with the requests module @info:cursos:pue:python-pcpp1:m4
- calhost'') and you want the client to go to the **port number 3000** (json-server's default port). You should see something like this: {{ :info:cursos:pue:... de are the **server’s address** and the **service port number** – just like we did while using the browser’s address line. Note: the port number can be omitted if it is equal to **80**,
- 2.2 Inheritance and polymorphism — Inheritance as a pillar of OOP @info:cursos:pue:python-pcpp1:m1
- turned on') class Radio(Device): pass class PortableRadio(Device): def turn_on(self): print('PortableRadio type object was turned on') class TvSe... as turned on') device = Device() radio = Radio() portableRadio = PortableRadio() tvset = TvSet() for element in (device, radio, portableRadio, tvset):
- 1.2 How to use sockets in Python @info:cursos:pue:python-pcpp1:m4
- ocket to the service of the specified address and port (service) number. Note: we make use of the vari... ress (a pair consisting of the actual address and port number) is **specific for the INET domain**. Don... HTTP. Any Internet browser will try to connect to port number 80 by default, so we do it, too. Is it p... r may not respond to the connections addressed to port number 80. If you want to provoke such an event
- Python Professional Course Series: GUI Programming @info:cursos:pue:python-pcpp1:m3
- GTK and Qt). This means that if we want to build portable GUI applications (i.e., apps able to work un... rogrammers, to write one code and not worry about portability. Such an adapter is called a **widget to
- 1.1 Python Professional Course Series: RESTful APIs @info:cursos:pue:python-pcpp1:m4
- tem inside which the socked is located; * the **port number** (more often referred to as service numb... col, a carrier of data used by REST, usually uses port 80**. === Protocol A protocol is **a standardiz
- 4.2 Serialization of Python objects using the pickle module @info:cursos:pue:python-pcpp1:m1
- ted with the file; * we consecutively read some portions of data and deserialize it with the ''load()
- 2.4 Shaping the main window and conversing with the user @info:cursos:pue:python-pcpp1:m3
- s icon is more troublesome if you want to do in a portable way. Here’s one working solution, although w
- 1.3 JSON – our new friend @info:cursos:pue:python-pcpp1:m4
- objects. The mechanism which solves it should be portable and platform independent. How can we meet s