python

Equivalente Python da un esempio di programma Java molto semplice

Attualmente sto leggendo il tutorial ufficiale di Java e mi piacerebbe confrontare un esempio di codice dato al suo equivalen ... e2.changeCadence(40); bike2.speedUp(10); bike2.changeGear(3); bike2.printStates(); } } Grazie, Bruno

Compressione dei dati del flusso audio in python e decompressione in java

Trasmetto con successo l'audio su TCP da python in esecuzione su raspberry pi a un'applicazione Android e sto cercando di usa ... Qualcuno ha un'idea del perché questo non funziona? Inoltre, ci sono modi alternativi per ottenere ciò che sto cercando di?

Raschiare script java da un sito web [chiuso]

Sto cercando di raschiare usando Python 2 da questa pagina web https://www.mmoga.co.uk/FIFA-Coins/FUT-Coins-Xbox-One, FIFA-1 ... oins-Xbox-One,FIFA-15/") data = json.load(htmltext) mmogaamount.append(data["title"]) print mmogaamount i+=1

Perché abbiamo bisogno di installare un kit (JDK) per avviare la programmazione in Java

Il mio primo linguaggio di programmazione è stato Pascal e non ho dovuto installare altro che il compilatore. Stessa cosa con ... ngono questi pacchetti e perché alcune lingue richiedono l'installazione di questi file prima di compilare qualsiasi codice.

Analisi di file xml bz2 molto grande (elemento per elemento) in java e python

Ho un file xml bz2 da 20 GB. il formato è così: <doc id="1" url="https://www.somepage.com" title="some page"> text te ... _id + '\t' + contect); content =""; } else { content = content + " " + str; }

Apache-Flink 1.11 Impossibile utilizzare Python UDF attraverso la funzione SQL DDL in Java Flink Streamming lavoro

In Flip-106 c'è un esempio di come chiamare una funzione Python definita dall'utente in un'applicazione java batch job tramit ... id, Wei e Xingbo per il supporto finora, perché ogni dettaglio suggerito aveva funzionato per me. Cordiali saluti, Jonathan

Eccezione: il processo Java gateway è uscito prima di inviare il suo numero di porta con pyspark

Sto lavorando con python e pyspark in un notebook jupyter. Sto cercando di leggere diversi file di parquet da un bucket aws s ... ateway process exited before sending its port number with pyspark Non sono sicuro di come risolvere questo problema, grazie!

Java gateway processo uscito prima di inviare il suo numero di porta Spark

Sto cercando di installare Spark nel mio Windows 10 con Anaconda, ma ho ricevuto un errore quando provo a eseguire pyspark ne ... Installare Java 8 (non 10) Ho già speso un po ore cercando, anche una reinstallazione Anaconda perché cancello un ambiente.

How to parse an html page with JavaScript in python 3?

How to parse a html page from JavaScript to python 3 and what is needed for this.

Why is it taking so long to execute loop code in Python compared to Java or C

Why is it taking so long to execute loop code in Python compared to Java or C counter = 0 q = pow(2, 16) - 1 m = pow(2,20) z ... if ((cs * 16 + addr) % m == 0x7c00){ counter++; } } } printf("%d\n",counter); return 0; }

How do I prepare images for OCR using OpenCV

My task is to read promo codes from bottle caps and boxes, the lids have different colors, and the promo code is printed diff ... e(" ", "") print("--------- TADAM ITS-------------") print(result) # Show image cv2.imshow("erosion", small) cv2.waitKey(0)

JavaScript code doesn't work with django

JavaScript code doesn't work if you connect it to HTML that works in django. If you just enable HTML, then everything is OK, ... "/media/js/actions.js"></script> </head> alert('test'); How do I make it connect to the HTML file correctly?

How do I output multiple variables to a string in java?

Let's say that in python you can do it like this: hello = "Привет" world = "мир" num = 1 print("{} {}! #{}".format(hello ... s%n", "joe"); But here it is not clear why these %s and %n, as well as how to output multiple variables in a single line...

Eclipse. How to set up an environment for Java, PHP, Python at the same time

Hello, I program in Java in Eclipse, now the task is to write in php and python as well, how to set up an environment for 3 l ... time? Do I need to download separate versions or can I configure everything in one and build projects for different languages

Explain the code if name = = "main" in terms of the Java language

I am new to Python and try to understand everything through the language I know-through Java. When I came across if __name__ ... ut the duplicate. The questions have no analogues with Java. Do not cut from the shoulder. Please read my question carefully.

Java or Python? [closed]

Closed. This question is off-topic. Answers to it are not accepted at the moment. ... different chips, but dynamic typing is confusing, it seems inconvenient(never used). In general, the collection of opinions)

Tell me small open source projects for training [closed]

Closed. This question should be specified . Answers to it are not accepted at the moment. ... Simpler, so as not to drown in the code. Interested in the languages Java, C, Python. If with GUI, then GTK+is preferred.

Java(client) Python(server) communication)- Socket

The problem is that the message does not reach the android (client), or does not go at all. He writes on Android that he conn ... rmission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> Bold italics

How can I send JavaScript commands to a site using Python?

I want to send a JS script to the site via python so that it is equivalent to writing this script to the f12 console. How to implement this and is it possible to do it at all?