Posts by josué • 80 points
6 posts
-
-1
votes1
answer37
viewsA: Running dependent threads in parallel in python
good you are running to function inside the thread and not passing with parameter example: processo1 = Thread(target=stream.main()) # chamando a function processo1.start() processo1 =…
-
0
votes1
answer44
viewsA: How to create a loop to list items by clicking a button?
hello, good is just you use the map, it receives two parameters o item which in this case is the return and index which is the index of the current element that is inside an array example:…
-
-1
votes1
answer38
viewsA: PYTHON - How to create a list containing each element from a previous list within another list
good to write a code very quickly here according to what you wanted, I hope to have helping arrays = [['3 -1 2 0 2 0 -1 -1', '4 2 4 5 1 0 0 1 1'], ['6 -8 -8 15 15 0', '5 -1 3 2']] newArrays = list()…
-
0
votes1
answer31
viewsA: Image exchange using js
in the variable img you’re picking up the div and not the element <img /> to catch the element img only do so var img = document.querySelector('#imagem > img')…
-
0
votes1
answer33
viewsA: Register cookie after pressing button
well first you should select the button that closes the pop up and add a click Event on it and when the user click you call the Function that set the cookie. I hope I’ve helped!!! EXAMPLE var button…
-
0
votes1
answer573
viewsA: Unboundlocalerror: local variable '' referenced before assignment python
well first you set the variable within the if It is this attempt used inside else plus the else cannot generate the variable inside the if It’s just you take out the variable from inside the if is…