Questions tagged as 'python-2.7'

2
answers

Sources of the standard Python functions

How can I find out the algorithm behind functions like split() and in in Python, because in my college there are some forbidden functions.     
asked by 01.12.2018 / 01:25
1
answer

How to insert a line in a graph of gnuplot py?

I want to insert a line in the middle of a graph that I'm plotting with Gnuplot (python), which will serve as a threshold, such as at y = 0. How can I do this?     
asked by 18.08.2018 / 22:01
0
answers

Upload file via network with Python

Server #!/usr/bin/env python #-*-coding:utf-8;-*- import socket import os host = "127.0.0.1" port = 8080 addr = (host, port) skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM) skt.bind(addr) skt.listen(1) print "||------------------------...
asked by 23.08.2018 / 18:54
3
answers

Web scraping python running javascript on CEF website [closed]

CEF changed the way it displays lottery results on its site, before I was able to get the results that all came into HTML via webscraping relatively easily using BealtfulSoup, but now those results are displayed running via javascript browser. I...
asked by 05.06.2018 / 22:50
0
answers

How can I use the OpenCL functions available in OpenCV?

I'm creating a program in Python, which often ends up requiring more CPU and I've researched how to use the GPU for processing. The OpenCL bases I found had C ++-only examples, and still not very explanatory. In those days I discovered that from...
asked by 07.05.2018 / 19:49
0
answers

(Socket) Client and Server Connection - how to get return from Cmd- Client (Python)

I want to run a command in the client's Cmd and return the values to the server. I've already been able to run the command in the client's Cmd ... Now how do I return the values to the server? The Server: import socket import os Host = "1...
asked by 31.03.2018 / 03:31
1
answer

HTML alignment using Python

I need to align an HTML code , in some parts it comes totally "messy", example: <li><a href="dsadas">dsadaads</a></li><li><a href="dsadas">dsadaads</a></li><li><a href="dsadas">dsada...
asked by 18.12.2017 / 16:54
0
answers

How to send an image correctly via Socket in Python

I'm trying to send an image from the 'dir' directory to another client in my network. Sockets are working properly, the image arrives at the destination and is saved, but when I try to open it I get: "This is not a valid bitmap file." #Cód...
asked by 10.12.2017 / 01:26
1
answer

How to Create a Communication Between Two Clients via Server Using Socket

import socket from threading import Thread def client(h, p): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # IPv4,tipo de socket s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) while True: try: s...
asked by 13.11.2017 / 15:42
0
answers

I can not install scipy. is showing this error [closed]

Microsoft Windows [versão 10.0.14393] (c) 2016 Microsoft Corporation. Todos os direitos reservados. C:\Users\Aluno>pip install scipy Collecting scipy Using cached scipy-0.19.1.tar.gz Installing collected packages: scipy Running setup.py insta...
asked by 20.09.2017 / 19:20