Questions tagged as 'python-2.7'

0
answers

Problems with the solictud Post made python from a form made in laravel

I have a form made in laravel done with the method POST which is the following <form method="POST"> {{ csrf_field() }} <input type="email" name="email"> <input type="password" name="password">...
asked by 01.05.2017 / 04:16
0
answers

Problems with special characters in Highcharts and json

I have a datos.json file that contains data in Spanish with accents and other special characters. When using it in a Highcharts graphic, it displays the accents and eñes with question marks. Needless to say, the .html file contains a...
asked by 12.12.2016 / 14:02
0
answers

Insufficient memory. error when running opencv_traincascade with OpenCV 2.3.1 in Python 2.7 using Ubuntu 12.04 [closed]

I'm following the example of: link Almost everything has gone well, in the part where I fail is when I execute the last step, when I try to create the .xml file that will help me detect my own objects: opencv_traincascade -data classifi...
asked by 19.06.2016 / 23:02
0
answers

Common elements in three pairs of Python fixes [closed]

I have a file with 12 columns, which corresponds to 3 groups of 4 data, such as A1-B1-C1-D1-A2-B2-C2-D2-A3-B3-C3-D3 . I want to search when it is A1[i]=A2[j]=A3[k] and at the same time B1[i]=B2[j]=B3[k] When that happens, I want...
asked by 30.05.2016 / 01:34
3
answers

Wait a while x after each print in Python 2.7.15

so far my code is something like: print "hola" time.sleep(1) print "mundo" time.sleep(1) if var == 0: print "hola" time.sleep(1) print "persona" time.sleep(1) else: pass and so after each print. The idea is to achieve a...
asked by 30.12.2018 / 05:48
2
answers

Do not show the output of a command in python when you use os.system ()

I'm trying to make a program that sends a ping to a certain number of IPs that the user enters through the terminal. for example: python programa.py 10 20 I think it is appropriate to mention that the computer on which this tool is going to...
asked by 11.07.2018 / 23:44
2
answers

Read dictionary key with Selenium Python

I have the following code. The program is complete, only I need a small adjustment. As you can see, I read a dictionary and I'm entering the keys in different places on the selenium website. Now, here the problem appears, I need you to just call...
asked by 19.10.2017 / 14:59
2
answers

Python - avoid changing value in a variable

Good afternoon The problem is that the first function changes the value of my list, and the second function takes the modified list as a parameter, and I want the second function to also take the original list as a parameter. import math im...
asked by 21.06.2017 / 19:52
2
answers

Error with raw_input

I need to calculate the Laplace transform. For that I used the following code: from sympy.abc import x, s from sympy import Symbol, exp, cos , sin , Heaviside, integrate, limit, oo x=Symbol("x") s=Symbol ("s") f=raw_input(" write any function...
asked by 05.06.2017 / 08:07
2
answers

Python, compare two files

I have to read all the files that are inside a directory and then compare them with those of a .txt file import os from os import listdir from os.path import isfile,join mi_path = "c://python27//proyectos//" f = open(mi_path+'datos.txt', 'r+'...
asked by 13.07.2017 / 11:43