I'm learning about servers in python and I'm using the socket library. But when I use the socket.recv(1024) command for the server to read what the client sent, IDLE gives the following error:
'socket' object has no attribute 'recv'...
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main()
{
setlocale(LC_ALL,"");
int *x,valor,y;
valor = 35;
x = &valor;
y = *x;
printf("o endereço da variavel valor: %p\n", &valor...
At reply this question that Guilherme Nascimento P. did, there was a question about using the slice , so far I was unaware of it, and found it at documentation I was confused.
Searching here in SOpt did not find anything about...
I'm trying to build a table from information collected on a website.
The problem is that although print comes out as expected, at the time of saving in csv file only the last record is going.
Below the code snippet that is giving me a head...
I have some doubts about the projects created in python.
If I create a program and need to pass it to someone else, will I need the other computer to have python installed and all the libs I got from outside?
How do I leave the program a...
How do I create a variable and add the type as an integer but with no value set? I need this variable to do this:
a = int(input())
b = int(input())
x = int # tentei colocar o tipo da variável como inteira dessa forma, mas dá erro.
if a * x ==...
How can I exchange information between two different classes? I need to move data from one to the other. Each class is running in a different process.
An example of the structure, the code is too large, so there goes an example, the only diff...
I have in the following code I have a function that performs certain operation according to the passed parameters. Then I have a dictionary serving as a switch case, which will serve to define which parameters will be passed to the function.
d...
Hello, I have the following code:
import csv
def carregar_acessos():
X = []
Y = []
arquivo = open('acesso_pagina.csv', 'rb')
leitor = csv.reader(arquivo)
next(leitor)
for home,como_funciona,contato,comprou in leito...