Python – Keywords (more diff.)

 0    23 adatlap    sir
letöltés mp3 Nyomtatás játszik ellenőrizze magát
 
kérdés válasz
To create an alias
kezdjen tanulni
as
For debugging
kezdjen tanulni
assert
To break out of a loop
kezdjen tanulni
break
To define a class
kezdjen tanulni
class
To continue to the next iteration of a loop
kezdjen tanulni
continue
To define a function
kezdjen tanulni
def
To delete an object
kezdjen tanulni
del
Used with exceptions, what to do when an exception occurs
kezdjen tanulni
except
Used with exceptions, a block of code that will be executed no matter if there is an exception or not
kezdjen tanulni
finally
To import specific parts of a module
kezdjen tanulni
from
To declare a global variable
kezdjen tanulni
global
To import a module
kezdjen tanulni
import
To check if a value is present in a list, tuple, etc.
kezdjen tanulni
in
To test if two variables refer to the same memory space.
kezdjen tanulni
is
To create an anonymous function
kezdjen tanulni
lambda
To declare a non-local variable
kezdjen tanulni
nonlocal
A null statement, a statement that will do nothing
kezdjen tanulni
pass
To raise an exception
kezdjen tanulni
raise
To exit a function and return a value
kezdjen tanulni
return
To make a try... except statement
kezdjen tanulni
try
To create a while loop
kezdjen tanulni
while
Used to simplify file handling
kezdjen tanulni
with
To end a function, returns a generator
kezdjen tanulni
yield

Kommentár közzétételéhez be kell jelentkeznie.