f = lambda x,y,z: x+y+z apply(f, (1,2,3)) # Yield-инструкция def reverse(data): for index in range(len(data)-1, -1, -1): yield data[index] for char in reverse('summer'): print char
Python Справочник v0.05 © 2007-2024 Igor Salnikov aka SunDoctor