Questions tagged as 'python'

1
answer

compile in sublimeText 3 python code activating a cmd window

Maybe my question is not the most accurate but good to explain create a new build system { "cmd": ["start", "cmd", "/k", "C:/Users/Jsociety/AppData/Local/Programs/Python/Python36/python.exe", "$file"], "selector": "source.python", "shell": tru...
asked by 08.02.2018 / 07:15
1
answer

How to solve a combinatorial problem, preferably in python?

Today I come to pose a problem, more of algorithm than of language. I need to get to generate one, several, or all the possible combinations of 25 elements, (or I would even be satisfied with at least one combination with as many elements as pos...
asked by 31.05.2017 / 18:44
1
answer

Send and Receive data between .py files

I'm starting to study Python and I have the following doubt, maybe because I'm used to php and with Python it's done in a different way, I want to send and receive data from one .PY file to another. file SEND.PY import requests datos = {"no...
asked by 15.06.2017 / 16:25
1
answer

Browse, compare and assign dictionaries and lists

I have an array called labels such that: labels Out[15]: array([ 0, 1, 2, ..., 7, 10, -1]) I also have a dictionary called IDnodes which contains for each key an array of Boolean type and each array is of a different length...
asked by 08.05.2017 / 11:00
1
answer

How not to detect upper case in Python 3.5

I've done a program in Python 3.5 to ask myself words. But I have a problem: dictionary = {} numpal = int(input("Cuantas palabras quieres que te pregunte?: ")) if numpal<=0: print("El numero de palabras tiene que ser mayor que 0.")...
asked by 23.01.2017 / 12:01
2
answers

Compare a coordinate list with another and its radius

Good! Let's see I have a function that generates a list ( List A ) of coordinates in numpy .    [[1,1][1,6][3,5][5,7]] < - (for example) And I have another list ( B list ) with more coordinates (Also in numpy ) format...
asked by 27.01.2017 / 10:19
1
answer

I can not show arduino sensor reading in my interface, it blocks

I'm trying to create a graphical interface on tkinter to show the reading of a sensor on an Arduino one board. The error is that when I run the program it stays in the cycle While and the window in white, when I give it interrupt it sh...
asked by 05.12.2016 / 02:37
1
answer

TypeError: integer argument expected, got 'str'

The error occurs in the login of a program, I have been reading and I found a solution with the open, but it does not work for someone to help me, thanks in advance. def login(): user2=str(input("Nombre de usuario:")) user__file2=open...
asked by 04.01.2018 / 15:16
1
answer

Create my own payload in python

Hello as the name indicates I am trying to create my own payload in python since I have always been curious about how they are made or how they are mounted. Well the following code in principle would be a payload made in python (correct me if I'...
asked by 31.12.2016 / 01:51
1
answer

help with python and pycrypto

my headache is this I want to make a program that encrypts certain files and then delete the original version, because I tried it only works with only one file and creates a new one, I work with delicate files and when I finish to moficarlos is...
asked by 18.08.2016 / 17:49