Questions tagged as 'python'

1
answer

Multi-thread Imperative programming and sockets

I know the threads at the theoretical level, I know there are two modules to use them, one is low level and the other high level, the first is threading and the second is thread, this I have seen in a wiki, after that I know that there are many...
asked by 15.04.2017 / 14:10
0
answers

How can I continue entering values to my Binary Tree?

Good, in this code implement a binary tree where values are entered and performing their respective operations. However, when wanting to enter more and more values, I am marked by an error that requires me to receive some advice on what can be d...
asked by 18.04.2017 / 03:32
2
answers

Python - Convert float to string

I have a matrix of floats of 3000 by 17, the theme is that in the first column I want to save strings. With the following code: tabla = numpy.empty((3000, 17)) nombres = ['i0{i}_0{d}_{n}.bmp'.format(i = imagen, d = distorsion, n = nivel)...
asked by 10.04.2017 / 20:52
0
answers

Problems uploading images using django formsets

Good day the reason why I make this entry is because I am struggling to load images using django forms, when creating a new product two forms appear to load two more images, the problem is that when loading all the forms if they create these rec...
asked by 30.03.2017 / 22:54
0
answers

Big Data project start council [closed]

Good evening, I have been assigned a project and I do not really know where to start. By curl I receive a json, the client wants to save every second the received data. Right now they have a cron task that calls a php file that performs an...
asked by 30.03.2017 / 21:30
1
answer

Django registration redux form

Good afternoon, I would like to know how I can edit the style of my form, I do not want it to appear all at once, I use 'form | crispy' to call the form. I am also using 'django registration redux'. How can I do so that for example in the "inpu...
asked by 03.04.2017 / 17:55
4
answers

How to read a list of 1000 elements from a txt file in python and then sort it with Quicksort

def leeLista(): arreglo=[] a=int(raw_input("Ingresa el tamano del arreglo: ")) for i in range(0,a): arreglo.append(int(raw_input("Ingresa los valores %d : " % i))) #en lugar de ingresarlos los quiero extraer de un ar...
asked by 03.05.2017 / 20:18
0
answers

Problem getting tracking information 17trackPython

I am creating a code to use it in my telegram bot, the idea is to obtain the data of an order by 17track I make the query in the code but I can not find the error:    200 {"ret": - 9, "msg": "InvalidParams", "g": "", "dat": []} The sou...
asked by 17.03.2017 / 15:47
1
answer

Game of guessing a number in Python

I'm trying to make a game where you try to guess a three-digit number. The maximum of attempts is 5 and on the board the attempts that have been made along with their state must be shown. For example, if the code to guess (produced randomly)...
asked by 06.05.2017 / 22:03
2
answers

Re-execute a part of the code until it is fulfilled

Good friends, I have a doubt, the fact is that I am new to programming and I am learning python 3, I found a problem practicing the code of the true a very basic program. What happens is the following. I want to continue executing the program un...
asked by 07.05.2017 / 00:34