Posts by Weslley Ramos • 21 points
3 posts
-
0
votes3
answers174
viewsA: Condition "If" does not enter the structure
You are doing the wrong check. At 3° line you are saying: if bi['Localizador [Outros, Aéreo, Cruise]'] == ',': It’s other words you’re checking that this variable is equal to a comma. The correct…
-
1
votes5
answers158
viewsA: Python - Function that copies content from one list to another list
I didn’t understand the usefulness of the code, but in a direct way it would look like this: import copy def copia_lista(lista): '''Retorna a cópia de uma lista. ''' return copy.copy(lista) lista_A…
-
0
votes2
answers625
viewsA: How to manipulate Date attribute from a Python Json result
You can format with Python’s buit-in datetime and use the method strptime(date, Formatacao) for example: if you are receiving a date object -> 2016-09-22 from datetime import datetime data =…