Python – Keywords (more diff.)

 0    23 Datenblatt    sir
mp3 downloaden Drucken spielen überprüfen
 
Frage Antworten
To create an alias
Lernen beginnen
as
For debugging
Lernen beginnen
assert
To break out of a loop
Lernen beginnen
break
To define a class
Lernen beginnen
class
To continue to the next iteration of a loop
Lernen beginnen
continue
To define a function
Lernen beginnen
def
To delete an object
Lernen beginnen
del
Used with exceptions, what to do when an exception occurs
Lernen beginnen
except
Used with exceptions, a block of code that will be executed no matter if there is an exception or not
Lernen beginnen
finally
To import specific parts of a module
Lernen beginnen
from
To declare a global variable
Lernen beginnen
global
To import a module
Lernen beginnen
import
To check if a value is present in a list, tuple, etc.
Lernen beginnen
in
To test if two variables refer to the same memory space.
Lernen beginnen
is
To create an anonymous function
Lernen beginnen
lambda
To declare a non-local variable
Lernen beginnen
nonlocal
A null statement, a statement that will do nothing
Lernen beginnen
pass
To raise an exception
Lernen beginnen
raise
To exit a function and return a value
Lernen beginnen
return
To make a try... except statement
Lernen beginnen
try
To create a while loop
Lernen beginnen
while
Used to simplify file handling
Lernen beginnen
with
To end a function, returns a generator
Lernen beginnen
yield

Sie müssen eingeloggt sein, um einen Kommentar zu schreiben.