Questions tagged as 'python'

1
answer

I am not able to call a function in python

Hello. My problem is this: def arranque(): machine = raw_input("Bem vindo à màquina virtual(VM). Prima ENTER para iniciar o SO ou prima B para entrar no menu da BIOS.") if machine == "B".upper(): print "A iniciar a BIOS..." for i in range...
asked by 11.06.2014 / 02:06
1
answer

How to use QTreeWidget FindItem in PyQt?

I have a QTreeWidget tree with several items previously included. I need to look up if a string x has the same text value as my QTreeWidgetItem , so I need to check all the items in my tree. Does anyone know how I can use thi...
asked by 21.02.2014 / 18:36
3
answers

Python - NZEC problem in SPOJ (br.spoj.com)

I'm trying to pass a code in SPOJ ( link ) to solve a very simple problem: Read an array, read matrix coordinates, and verify that the same coordinate has been read twice. If yes, print 1. If not, print 0. I'm getting the error: Run-time erro...
asked by 25.03.2014 / 16:37
0
answers

Technology for the development of an API with Python [closed]

I need to develop a% non-professional% in order to consume data from some sites with information on pricing of Real Estate Funds, business numbers, quantity of quotaholders, and other information to get in a critical analysis of good investing...
asked by 05.01.2019 / 14:35
1
answer

index (find) + len (find) ValueError: substring not found Crawler Python

Personal I need a help for code in Python looking for internet result.    Python 3.6 The first one of Bitcoin worked, the second one with error. from urllib import request url = request.urlopen("https://dolarhoje.com/bitc...
asked by 30.12.2018 / 19:05
1
answer

Creating Loop Objects

class linha (): def __init__ (self, texto): self.texto = texto def criador (): for i in range(5): a = raw_input ('escreva: ') global objetoi objetoi = linha (a) How do I get the criador function t...
asked by 04.05.2014 / 04:51
1
answer

Stacked data. How to work with this in pandas? [closed]

I have a table that is structured with "stacked" data, that is, all the information of a customer occupy some first lines. After completing the information of this client, the next client occupies the next lines, and so on. I'm seeing how I can...
asked by 12.12.2018 / 21:46
0
answers

Django Project Deployment on Heroku with Errors

When trying to deploy my Python project using Django in Heroku, I'm getting the following error. Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 273 bytes...
asked by 13.12.2018 / 01:12
0
answers

Pass numbers from input to array in Python

I'm doing an exercise on split graphs, in which input is given as follows: 6 2 4 5 1 3 2 3 5 1 0 2 2 1 1 1 Being 6 (the number of the first line) the number of lines to be read, and the other lines are about the vertices that have connectio...
asked by 28.11.2018 / 22:04
1
answer

Script that Save the page and change the URL, and Save the next page [closed]

Well, I have a problem that in my view is simple, but in practice it is complex, I need a script in which it save several URL pages and change to the next URL, www.example.com/1 Saved 1 Next > www.example.com/2 Saved 2 Next > www.example...
asked by 25.11.2018 / 14:55