lambda tag

34 questions


1 answers
147 views
0
Python tkinter button command Lambda.

Python tkinter in use An attempt was made to execute a function through the command in the button widget.But I'm asking you this question because it doesn't work normally.TestBtn = Button (MainForm, t...


1 answers
89 views
0
What are the advantages of lambda?

I'm studying lambda now.lambda is sometimes good to use,I don't feel like Python because it's hard to learn and it's not readable.The function won't change later, right?Is lambda a function that can b...

2 years ago

2 answers
105 views
0
Python tkinter : Problems when dynamically creating a button and connecting the event handler for each button using Lambda.

i = 0for f in range(len(machh)): globals()['button{}'.format(f)] = tkinter.Button(frame, command = lambda : self.Match_Deep_Search(f) ) # Create buttons as large as the list def Match_Deep_Sea...


1 answers
118 views
0
Question about the result value that appears when the list is not added to the Lambda function (python)

a=[1,2,3,4,5,6,7,8,9,9,1,5,4,32,2]a=map(lambda x :x*10,a)print(a)I used the Lambda function to do the things on the list at once *10.But if you don't put a list,map object at 0x000002659B33DF10Is that...

2 years ago
« - 4 -

© 2024 OneMinuteCode. All rights reserved.