Posts by marcos paulo silva viana • 86 points
12 posts
-
0
votes1
answer30
viewsA: Unexpected tokens - boostrap4
Try to replace: {% load bootstrap4 %} for: {% load static %}
-
2
votes1
answer62
viewsA: Jupyter notebook has stopped working
Good morning, see that you first imported the numpy and created an alias np import numpy as np in the next line should use this alias np.version.full_version…
pythonanswered marcos paulo silva viana 86 -
-1
votes1
answer49
viewsA: Help with python Tkinter
Good afternoon, the error that occurs is that nothing appears right? Here is the pq: you have to instantiate the class because it was built but it was not instantiated, another issue just a good…
-
0
votes1
answer28
viewsA: How to navigate from Radiobutton?
You have already created the other navigation screens, the main() function has been created, is on the main screen( Tela_main())? In my opinion this switch would not be necessary , just state the…
-
1
votes3
answers128
viewsA: How to browse a JSON within another JSON in Python?
As above follows the whole code: import urllib.request import json url = 'https://sisu-api-pcr.apps.mec.gov.br/api/v1/oferta/instituicoes' resp = urllib.request.urlopen(url).read() resp =…
-
-1
votes3
answers128
viewsA: How to browse a JSON within another JSON in Python?
Good morning, the error is in trying to traverse the list contents by placing text in the field: print(x['co_ies']+. Resp is a list of json. The solution would be to use enumerate: for i, x in…
-
1
votes2
answers47
viewsA: how to save user’s choice in a Nav-tab modal
You have to edit your view to receive these values on flask I know you have the request.form.ge["nome do campo"] in the Django nome_do_campo = request.POST.get('nome_do_campo') Note: has to see if…
-
-1
votes1
answer124
viewsA: What’s wrong with my python code?
No error returns? tries to change:WAVE_OUTPUT_FILENAME = "tmp.wav" for WAVE_OUTPUT_FILENAME = "tmp.wave"
-
1
votes3
answers149
viewsA: (Python) How to prevent methods from being accessed from the value of some attribute
I don’t quite understand, but I think you want to prevent direct access to class attributes. If this is the case you will have to name the attributes with dunderscore or underline twice before the…
pythonanswered marcos paulo silva viana 86 -
1
votes2
answers7068
viewsA: How to get out of one loop inside another through a function in python?
I don’t understand what you really want to do, because from what I saw you did a function that just doesn’t come out of the loop... but I will try to solve see below if this is what you want, I took…
-
0
votes1
answer44
viewsA: Resources required per formula
The consumption is minimal in its functions, but if you really want to know would advise to use the module timeit , you will have the run time of each function I believe that consequently the one…
python-3.xanswered marcos paulo silva viana 86 -
-1
votes1
answer55
viewsA: How to handle numbers larger than the FLOAT type in Python-3.x
Since it will write to a txt file you could try solving it as follows resultado = str(numerador / denominadorP) f = open('resultado_denominador_fatorial.txt', 'w') #cria o arquivo com permissão de…
python-3.xanswered marcos paulo silva viana 86