Questions tagged as 'python'

1
answer

How do you solve this exercise without using a loop?

We want to make a row of bricks that have long goal inches. We have a number of small bricks (1 inch each) and large bricks (5 inches each). Go back True if it is possible to make the goal by choosing between the given bricks. Function: def...
asked by 13.11.2018 / 01:47
1
answer

Python file download [closed]

I have a question, How can I download a file from the web, which always has a different name when it is deposited? Let's say that every Monday the file is loaded as File__America_Empresa_dd-mm-hh-mm-ss.xlsx so it can be said that the file...
asked by 17.04.2018 / 17:35
2
answers

RESOLVED Client python server 3

Searching the web I found this code for communication between a client and a server Server #!/usr/bin/python import socket #utilidades de red y conexion ip = "192.168.0.18" puerto = 4445 dataConection = (ip, puerto) conexionesMaximas = 5 s...
asked by 06.11.2018 / 09:40
1
answer

Make a table of values in phyton [closed]

Hi, I have a problem I would like to know how to make a formula that prints a table of values of a linear function with while?     
asked by 04.09.2017 / 21:04
2
answers

How to put a list within a chain [closed]

I would like to add a list to a string, making it look like this: alumnos = [["Juan", "Silvia"], ["María", "Luisa"], ...] I do not know exactly how to do it in python.     
asked by 03.12.2017 / 17:52
1
answer

make a spam classifier in python [closed]

Good I have to make a code that specifies if it is spam or not. I have to make a coach and then one to see if it is or not. But I've never handled python and I'm very lost. What I have doubts is how I can do the summation that is in the fo...
asked by 15.10.2018 / 19:05
1
answer

QTableView or QTableWidget? [closed]

In Pyqt5 that is more convenient, use QTableView or use QTableWidget?     
asked by 20.06.2016 / 21:05
1
answer

deleter decorator in @property

In the next class, what object has the deleter decorator? class C: def __init__(self): self._x = None @property def x(self): """I'm the 'x' property.""" return self._x @x.setter def x(self, value):...
asked by 13.10.2016 / 07:22
0
answers

Sign XML document with p12 using XADES-BES

I want to be able to sign an xml using a P12 file which I own the key .. and the file itself, using the XADES-BES methodology, I have seen that in JAVA they use libraries ready for it, but in my case it is for python. The XML I want to sign h...
asked by 04.01.2019 / 13:42
0
answers

error generating tensorflow model

When I run the data / download.py I have no problem but then when I run the code to make the model I get this error: Traceback (most recent call last): File "\Python\deep_speech\deep_speech.py", line 404, in <module> app.run(main)...
asked by 20.12.2018 / 00:18