Posts by Vengi • 107 points
4 posts
-
3
votes2
answers1349
viewsQ: Record runtime in python
In Python, I need to do something like: timer.start() ***Imagine um código de várias linhas aqui*** timer.stop() print("Tempo de execução: " + timer) It can be in seconds, minutes anything, someone…
-
0
votes2
answers242
viewsQ: Picking up request attribute with Python Json gives error
I have the following code in my application in Flask: from flask import request, json cpf = request.json['cpf'] It works normally, but when there is no attribute in the json request it displays the…
-
3
votes3
answers60
viewsQ: Javascript - Show function result in class
I have a Javascript function that returns today’s date: function getData(){ var dataAtual = document.getElementsByClassName("dataAtual"); var today = new Date(); var dd = today.getDate(); var mm =…
-
2
votes1
answer69
viewsQ: Enable Jquery function when x characters
Very good day! I have a form with only one input: <input type="number" name="codigo" class="form-control" style="margin-left: 2%" autofocus id='codigo'> And I need that when the input reaches…