Questions tagged as 'python-3.x'

1
answer

How to use Android clipboard in Python scripts

I'm doing some tests for an Android script. It is a series of randomly generated numbers that automatically and without displaying anything on the screen, go to the clipboard and is available to be copied anywhere. For now, I run without problem...
asked by 02.10.2018 / 13:39
0
answers

Run a dll from python

I'm trying to execute a dll from python. I found this code # Importamos ctypes import ctypes as c # acceso a la biblioteca dll = c.CDLL("funciones.dll") # acceso a la variable global de la biblioteca # longitud del array size = c.c_int.in...
asked by 01.10.2018 / 01:42
0
answers

Python error not enough values to unpack (expected 3, got 2)

I have this code: from PIL import Image import numpy as np import matplotlib.pyplot as plt import FuncionesFiltros as fun Im = Image.open('build.jpg') Im_a = np.array(Im) plt.figure() plt.imshow(Im_a) plt.title('IMAGEN ORIGINAL') plt.axis("of...
asked by 28.09.2018 / 00:13
0
answers

Help with pandas merge inner

You can do me the favor of teaching me or telling me where to look for how to do the following: I have two panda dataframes. The first is constant and the second is generated from an Excel that always has variable data. The data in column "0"...
asked by 26.09.2018 / 18:15
2
answers

Why do the private attributes of a class change despite assigning them to another variable?

You define a class with a 'private' attribute called __rango then you want to make a copy of this attribute in the variable rangoT to modify it without affecting the original attribute, but both change its value. Class definitio...
asked by 10.04.2018 / 21:06
0
answers

Web service with Flask to access external device cameras

At this moment I have with the code that I am using, I create a web service with Flask with which I access the webcam of my laptop. Python code: from flask import Flask, render_template, Response import cv2 app = Flask(__name__) @app.rou...
asked by 02.10.2018 / 02:56
0
answers

RGB TO HSI PYTHON

I have this function: def RGB_TO_HSI(R,G,B): if(0<=R<=255 and 0<=G<=255 and 0<=B<=255): d = float(R + G + B) r = float(R)/d g = float(G)/d b = float(B)/d numerador = float( 0.5 * ((r - g) + (r - b)))...
asked by 03.10.2018 / 05:35
0
answers

exercise of positioning of arrays with respect to another

code=[] notes = [] student=int(input('cuantos estudiantes desea calificar : ')) #puedo recorrer elemento y posicion for i in range (student): code.append(float(input('ingresar codigo del estudiante : '))) notes.append(float(input('ingresa...
asked by 02.10.2018 / 18:50
0
answers

Can I serve a web page directly with python and django on a VPS?

I have seen that everyone uses web pages with an NGINX or APACHE instead of serving the application directly with DJANGO, however I can not find the vulnerabilities that could be applied to attacks if you directly use the web with this Framework...
asked by 27.09.2018 / 16:30
0
answers

can not import name routes in a Flask app

I tried to test my Flask application following this blog but I said: (venv) mike@mike-Inspiron-3543:~/Documents/programming/microblog$ flask shell Usage: flask shell [OPTIONS] Error: While importing "microblog", an ImportError was raised: Tr...
asked by 22.09.2018 / 11:14