Gratis · Sviluppo
Compilatore Python online.
Scrivi ed esegui codice Python 3 nel browser senza installazioni né account: output, errori, valori per input(), esempi, download .py e link di condivisione.
Program input (stdin): one line per input() call
Press Run to see the output here.Python 3.14 by Pyodide (MPL-2.0) in WebAssembly. Standard library only (math, json, re, datetime, collections, dataclasses…); packages such as numpy and network access are not available. Stop restarts Python, which clears variables.
Eseguire codice Python nel browser
- Scrivi o incolla il codice in main.py, oppure scegli un programma in
Example. - Se il programma chiama input(), apri
Program input (stdin)e scrivi un valore per riga. - Premi
Run (Ctrl+Enter). L’output compare sotto; gli errori sono in rosso con la riga di main.py che ha fallito. - Premi
Stopper fermare un programma troppo lungo, poiDownload .pyoCopy share linkper conservare il codice.
La prima esecuzione scarica Python (circa 12 MB) una sola volta; poi il browser lo tiene in cache. Il codice viene salvato in questo browser e lo ritrovi quando torni.
Cosa funziona e cosa no
È CPython 3.14 con la sua libreria standard: math, random, re, json, csv, datetime, collections, itertools, dataclasses, decimal, fractions, statistics e altro. Pacchetti come numpy, pandas o requests non sono disponibili, non c’è accesso alla rete né finestre grafiche, quindi i programmi con turtle e tkinter non possono essere mostrati.
Stop riavvia Python e cancella le variabili delle esecuzioni precedenti. Per provare un’espressione regolare usa il tester di regex; per esplorare dati in SQL, le query SQL su file CSV e JSON.
Limiti e formati supportati
I dati vengono elaborati sul tuo dispositivo.
Note tecniche in inglese
Python 3.14 standard library only: packages such as numpy or pandas, network access and graphical windows are not available. The first run downloads about 12 MB, then the browser caches it.
Runs CPython 3.14 compiled to WebAssembly by Pyodide (MPL-2.0) in a background worker on your device; your code and its input never leave the browser. Share links store the code inside the link.
The Fibonacci example prints the first 15 numbers and fib(300); the Hello example reads a name from Program input and greets it.
Domande frequenti
Il mio codice viene inviato a un server?
No. Python funziona in WebAssembly in un worker in background del browser. Un link di condivisione contiene il codice nel link stesso.
Perché input() non aspetta che io scriva?
Il programma gira in background e legge le righe scritte in Program input, una per ogni chiamata a input(). Finite le righe, input() solleva EOFError.
Posso installare pacchetti con pip?
No. È inclusa solo la libreria standard, quindi lo strumento non scarica mai codice da altri server.