Questions tagged as 'python'

1
answer

Error when using a function outside the Python script [closed]

I created a function that uses other functions that are not in the same script, while running the program encounters an error, stating that the function outside the script is not defined. Must all the functions to be used need to be in the same...
asked by 16.09.2017 / 02:16
1
answer

Problem with numpy array

I'm having a problem using NUMPY. It has a testeSolucao array, of that type <class 'numpy.matrixlib.defmatrix.matrix'> , and I need to get the lowest value of it, but I can not. First I thought it was a vector, but it's genera...
asked by 30.09.2017 / 18:44
2
answers

Python 3 make the program discover how much of a given digit has a string or a number

It's for python 3: I'm trying to do a pretty basic program to figure out how much of a given digit it has in a string or a number. For example, if the user types 1200, I want to print- "your number has 2 zeros" .... or if the user types "h...
asked by 25.08.2017 / 07:55
0
answers

Change the Label everytime the button is pressed

I'm doing a PYTHON table using FOR, in TKINTER, and I would like every time a new number is placed in ENTRY, the label changes to the new table. For example, a number will be placed in the ENTRY and the person will click the TAB button, when it...
asked by 14.09.2017 / 00:58
2
answers

How to keep the left zero in import in Python?

Hello I have several TXT files with CPF numbers. The CPF has 11 numbers, so you can have leading zeros to complete that size I opened these files in Excel and put them together into one. In the CPF column, before opening each file, I made the Ex...
asked by 23.10.2017 / 17:15
0
answers

Get modal data in Django

I have a list of clients on the responsible screen, in case he presses to deny the client, opens a modal with the field Reason to fill it. I want to get what was typed in this field and save it to the Profile_Post table in the database. However,...
asked by 26.09.2017 / 14:52
0
answers

Pipe () command on windows

I'm trying to make a simple communication between processes, but the child f_filho is not receiving the message sent by the parent. How to solve? # -*- coding: cp1252 -*- from multiprocessing import Process,Pipe import numpy as np d...
asked by 29.09.2017 / 20:28
1
answer

Problem with argument substitution in function

I have a problem with the arguments that I pass in the function below, I am trying to pass the sha512 argument to hash_type , so that in the code within the function the substitution, and so the hash_target would be passed by the correct ha...
asked by 07.09.2017 / 04:17
1
answer

Flask relationship of sqlalchemy tables

Hey, everyone! I come asking for a force, I'm having a problem to accomplish the construction of the object to create the relationship of the tables. I have a table driver and another passenger and another still called race. In the race table I...
asked by 21.09.2017 / 19:01
1
answer

import openpyxl / ModuleNotFoundError: No module named 'openpyxl'

When I type in IDLE, import openpyxl, the following error message appears: Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> import openpyxl ModuleNotFoundError: No module named 'openpyxl' I searc...
asked by 06.09.2017 / 17:05