Questions tagged as 'python-2.7'

0
answers

How to get only one Json value using request.get_data () Flask Python

I'm a beginner in Python and would like a tip to get only one value from the following Json. { "test1":"valortest1", "test2":"valortest2", "test3":"valortest3", "test1":"valortest1" } Use to get json as follows in flask. given = req...
asked by 16.06.2017 / 22:42
0
answers

Converting Web Scraper from Python 2.7 to 3.5

Good afternoon everyone! It is as follows: I found a script in Python 2.7 but I have version 3.6. As I am new in this scope, I wanted to work manually to convert this script. Here is the code below: ### Modified for naming pics by tag impor...
asked by 28.03.2017 / 21:18
0
answers

Error installing a library in Python 3.6 on windows

Good evening. My question is very objective and direct. I'm trying to install a library in python 3.6 on windows 10 64 bit. However, the following error is occurring: To install I'm using pip install pocketsphinx the library is the pockets...
asked by 26.07.2017 / 23:00
1
answer

Display a given vector in a 2D list

I have the following problem: I have a 2D vector and I want to display only the first vector ([250, 27.65863337187866, 93.38094023943002, 27.65863337187866]). I've created a code, but it's displaying everything. Below the code: l...
asked by 04.03.2017 / 02:16
0
answers

Send Byte command via socket to a controller in python?

Hello everyone, I'm trying to send commands to a Controller "Commbox", this controller has the purpose of opening and closing gates, traffic lights and other things. I am getting a command in Java but I need to do the same command in Python. Sin...
asked by 17.02.2017 / 13:17
0
answers

Python I can not import ReCaptchaField

There is a project that has been sent to me on which I will work on it. I created an environment to upload the project and in design I had the requeriments where I circled it. But when I run the command python manager.py runserver it is g...
asked by 01.11.2016 / 21:04
1
answer

Save contents of a Listbox in the mysql database

Good morning, I have a listbox and am having trouble storing the contents of this list in the Mysql database. Can anybody help me. I followed the code and error below: def SaveVariosCodBr(self): db=self.conexaoBanco() cursor=db....
asked by 13.11.2016 / 15:44
1
answer

Change width and height of Excel cell using xlwt

I need to change height and cell width of Excel I'm using the xlwt library. I did not find any references, can anyone help me?     
asked by 21.09.2016 / 22:19
0
answers

dynamic formulas python django

I'm developing a project that needs to have a form created by the size of the item quantity that is created on another form. The initial form is FormRota: class FormRota(forms.ModelForm): researcher =forms.ModelChoiceField(queryset...
asked by 10.10.2016 / 21:44
0
answers

How do I develop a registration, listing and consultation system for vehicles and assemblers? Obs: the listing is by name, by year, price range and by motor

def main(): titulo = '***** Veiculos.BD ***** \n ' menu = titulo + '1 - Novo Veiculo \n 2 - Listar veiculos'\ ' \n 3 - Remover \n 4 - editar \n 0 - Sair \n Opcao >> ' veiculos = [] while True: op = input(menu)...
asked by 07.08.2016 / 06:24