Questions tagged as 'python-2.7'

1
answer

Replace letters when writing Python 2.7 [closed]

It is possible to make that when the user types in a "raw_input" instead of showing what he writes (ej: "hola") only shows a sign (ej: "****") , as if it were a key. Is it possible to do it with Py2.7? If 3.7 is required and...
asked by 25.08.2018 / 04:48
1
answer

Why does not my python code work?

import numpy as np import cv2 import time # Cargamos el vídeo camara = cv2.VideoCapture(0) # Inicializamos el primer frame a vacío. # Nos servirá para obtener el fondo fondo = None # Recorremos todos los frames while True: # Obtenemos el frame...
asked by 02.07.2017 / 00:16
1
answer

dictionaries in dictionary, Python 3

I have a dictionary with lists: d1 = { 'Carlos': { 'manzanas': ['12', 'verdes', '7', 'rojas', '5'], 'uvas': ['8', 'negras', '5', 'verdes', '3'] }, 'Juan': { 'manzanas': ['7', 'verdes', '5', 'rojas', '2'], 'uvas':...
asked by 23.10.2018 / 23:00
1
answer

Error printing on screen tkinter python 2.7

There is a problem when starting the function, could you help me? from Tkinter import * from tkFileDialog import * import getpass import os usuario = getpass.getuser() ventana = Frame(height=400,width=400,background="black") ventana.pac...
asked by 22.12.2016 / 09:30
1
answer

Help with ajax in Django 1.6.5 - ERROR 500

I would like to know why I'm launching a server error (500). I need to make or import some other type of library or module to run my request ajax ? $("#email").change(function(){ $.ajax({ data : { "ema...
asked by 12.07.2016 / 22:24
1
answer

Bot Telegram with Python connected to MySQL [closed]

Hello, I have started a project with a bot for telegram which should be developed with Python and should make queries to MySQL but the vdd I am not aware of the subject but I would like to know if there is a way to do it? I have knowledge in...
asked by 13.07.2017 / 22:53