Questions tagged as 'python-2.7'

1
answer

scipy.optimize.newton, How to declare the derivative?

Of the libreria Scipy to use the metodo de Newton I have to declare the functions and the parameters scipy.optimize.newton(func, x0, fprime=None, args=(), tol=1.48e-08, maxiter=50, fprime2=None) The problem is that when I de...
asked by 28.03.2017 / 15:42
3
answers

help txt files in python

Good evening Veran I am new to python and I need someone to explain to me how to do save an information x in txt file for example: student: carlos rojas age: 29 Address: alajuela telefo: 2222222 student: luis perez age: 18 Address: here...
asked by 07.04.2017 / 03:48
1
answer

TypeError: can not multiply sequence by non-int of type 'str'

I am developing a small exercise of the implementation of a class oriented to handling fractions with their respective methods, then I must use it to make a small calculator, the module with the class works perfect and I have tested each of the...
asked by 21.11.2016 / 02:43
1
answer

Erro when importing ttk, indicates that it is not defined

I have this program #importo las librerias from Tkinter import * from ttk import * class Aplicacion(): def __init__(self): self.raiz = Tk() self.raiz.title("Alta Velocidad") # Declara variables de control...
asked by 23.11.2016 / 17:43
1
answer

I want to validate with ajax and json in Django, a field if it already exists before submitting?

This is the url: url(r'validar/celda', SGregorio_views.validarcelda, name='validarcelda'), This is the view to validate: def validarcelda(request): error = '' success = False if request.method == 'POST': celda = reques...
asked by 04.10.2016 / 15:54
1
answer

Perform x simulations and collect the data in a CSV file

I would like to know how to perform 1000 simulations of the following code and collect all the output data in a CSV file containing two columns (l1, l2) and eight rows (ABCDEFGH) with the respective frequency of appearance of the letters a lengt...
asked by 03.01.2017 / 11:02
1
answer

Doubt nested list

usuario = line_conten[1].split(":")[1] ip = IP puerto = line_conten[1].split(":")[-1] fecha = time.strftime("%Y%m%d%H%M%S", time.localt...
asked by 04.01.2019 / 18:01
0
answers

Error trying to runbot runbot in odoo container 10

After downloading the addon of runbot when placing it in the addons folder of odoo it stops working, it does not finish loading related to the front end. For its part in the log of the odoo gives me the following error. Traceback (most rece...
asked by 27.12.2018 / 14:11
3
answers

Select integer floats in a list,

From a file with numbers in the list I must select the floating ones of the integers, for that I must transform them from strings to floating and integers, having to differentiate which ones are floating and which integers, for this I have desig...
asked by 01.01.2019 / 21:44
1
answer

Python menu problems

My menu has many errors and I would like to know what I'm doing wrong. One of the problems is that it does not let me leave the program if I press 4, another is that if I choose an option it shows me the figure I want but then I do not know how...
asked by 24.12.2018 / 11:43