Skälet till detta är att vi kan använda Python-tolken som om den var ett litet labb och experimentera med små programdelar.
The reason for this is because we can use the Interpreter as if it were a small laboratory and experimentally try small programs.
Vi vill se när Python kör igenom programmet, och visar resultaten i Python-tolken.
What we want to see is Python running through the program, and displaying its results in the Interpreter window.
Python- tolken hittade ett fel när ditt skript kördes. Rätta skriptet, och tryck på knappen Slutför igen.
The Python interpreter caught an error during the execution of your script. Please fix the script and click the Finish button again.
Jag kallar det här för "programfönstret" för att skilja det från Python-tolken.
I'll call this the "Program" window, to distinguish it from the Interpreter window.
Det här är IDLEs huvudfönster, och det vi ser just nu kallas Python-tolken.
This is the main window to IDLE, and what we see right now is called the "Interpreter" window.
Öppna en tutorial från webbsidan Python For Beginners och utforska den med Python-tolken.
Crack open one of the tutorials from the Python For Beginners web page, and start exploring with the interpreter.
Python-tolken använder dom bara för att visa att vi befinner oss i tolken, men nu när vi skriver i en separat fil ska vi ta bort dom.
The interpreter uses them just to tell us that we're in the interpreter, but now that we're editing in a separate file, we can remove the artifacts that the interpreter introduces.
Det fungerar på samma sätt som att skicka skriptet till Python-tolken, förutom att calibre miljön är helt initierad, så att du kan använda all calibre kod i skriptet.
It works in the same way as passing the script to the Python interpreter, except that the calibre environment is fully initialized, so you can use all the calibre code in your script.
Om du har en binär installation av calibre, kan du använda Python-tolken som medföljer calibre, så här
If you have a binary install of calibre, you can use the Python interpreter bundled with calibre, like this
Det verkar finnas ett fel i ditt skript. Python- tolken rapporterade inga fel, men skriptet skapar inte ett giltigt objekt. Rätta skriptet.
There seems to be an error in your script. The Python interpreter reported no errors, but the script does not generate a valid object. Please fix the script.
Vi kommer att använda Python-tolken en hel del när vi utforskar Python: det är mycket praktiskt eftersom vi får våra resultat direkt.
We'll be using this Interpreter window a lot when we're exploring Python: it's very nice because we get back our results immediately.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.