Questions tagged as 'python-2.7'

0
answers

Library keyboard applied within a for loop

I have a code with a loop. Within this loop that is running, I need to make the option that each time I press the letter O, a certain value x (previously defined by me in tbus ) is added to a given account in this loop for only one (the ac...
asked by 21.11.2018 / 01:54
0
answers

Android app with python

I'm having trouble, the python program runs perfectly on the computer, but the same does not happen on the phone. It opens the application, loads and closes. I use the kivy interface and generate the apk through the buildozer. This problem occur...
asked by 06.11.2018 / 17:09
0
answers

Android app with python

I'm having trouble, the python program runs perfectly on the computer, but the same does not happen on the phone. It opens the application, loads and closes. I use the kivy interface and generate the apk through the buildozer. This problem occur...
asked by 06.11.2018 / 17:09
0
answers

ClientException

Hello, I'm taking the ClientException error and I do not know why, I've been trying to fix it for a long time and I'm still making the same mistake to upload my files (I use the Sentry) code below: This is the first message ClientException:...
asked by 17.10.2018 / 21:40
1
answer

Select item from a column in Python

I have managed to filter the items I want, but they are in a kind of column. I did it this way: import os cmd = os.popen('arping -I enp1s0 -c 2 192.168.0.1') arr = cmd.read().split('\n') for line in arr: if 'Unicast' in line:...
asked by 11.10.2018 / 16:43
0
answers

Argument does not support iteration. How to solve?

I'm trying to apply the zip to the x, y, and z lists, but when I run the program, I get the following error: izip argument # 1 must support iteration. Can anyone help me fix my error? from matplotlib.backends.backend_qt4agg import FigureCanvas...
asked by 02.10.2018 / 23:19
1
answer

Treat functions that return multiple values in Python [duplicate]

For example, I have a mergeSort(alist) function that has return return count, blist that is, returns an integer that is the inversion counter and a list of values. When you pass a list 5 4 3 1 2 5 and make prin...
asked by 29.09.2018 / 20:44
0
answers

How to compile multiple python files into one using Pyinstaller?

I am doing a calculation program that is divided into 3 files py : graphical interface file ( cerberus.py ) file that carries out the calculations ( calc.py ) file responsible for plotting data ( plot.py ) I tr...
asked by 29.09.2018 / 17:35
0
answers

Transform strings into array or floats?

I have a problem: the user inserts two values, via graphical interface, separated by commas (I tested put in interface 10,0), and I need to transform these values into values that I can do accounts. I tried the code below, and I tested it by sta...
asked by 30.09.2018 / 22:00
0
answers

Automate SNMP lookup in the code that follows

import os import commands import time def ipagente(): ctoctok=0 while ctoctok<4: ctoctok=0 stroct=["","","",""] ctp=0 ipa=raw_input("IP (xxx.xxx.xxx.xxx):") for car in ipa: if car>="0" and car<="9": stroct[ctp]+=car if...
asked by 27.09.2018 / 14:52