Questions tagged as 'python-3.x'

0
answers

How to publish package in PIP - Python?

I'm developing a solution to facilitate a part of python development. I would like to know how I can publish this solution in PIP for everyone to install and use.     
asked by 19.06.2017 / 04:41
1
answer

Difficulty with socket.recv ()

I'm having continuity problems in my code after a function call, related to receiving data via socket with the following code: def le_dados(obj): lista_rcv = [] while True: data = obj.recv(2) if data: lis...
asked by 24.10.2016 / 15:50
0
answers

Use Python to run tests on TFS [closed]

Hello! I would like to know how to use Python to run tests on TFS. My intention would be to generate a script via Selenium WebDriver, transform the code into Python and use it in TFS to run automated tests. I can do this with the C # code, us...
asked by 20.01.2017 / 10:55
1
answer

Sort lists in dictionaries in python

Hello, I'm trying to sort my dictionary, but I'm finding it difficult. dict = {'EstacaoCodigo' : ['1','2','3'] ,'NivelConsistencia' : ['0','2','1'] ,'Data' : ['01/12/1996','01/12/1999','01/12/1994'] } Would it be possible to sort the list v...
asked by 26.10.2016 / 19:34
0
answers

Working with vectors [closed]

I need to generate a vector with 100 random number positions and see what the proportion of numbers 2 to every 10 vector positions, the first part I got, but the rest does not help? import random as rd v=[] for i in range(0, 20): w=rd.r...
asked by 30.11.2015 / 21:44
1
answer

What can happen to my project if I remove the virtual environment configured for it?

Let's say I created a virtual environment through virtualenvwrapper $ mkvirtualenv venv . I create my project, make the necessary settings, start working on the project and one day I remove the virtual environment $ rmvirtualenv venv...
asked by 19.09.2015 / 17:53
1
answer

Problem with JSON - Python3.4

I'm working with the API of BuscaPé to be able to remove information from some products of the site, the problem is that I can not manipulate one of the values of the json returned. Here are some results I could get: resp = buscape.find_produc...
asked by 23.09.2015 / 00:39
2
answers

Python chart does not display values correctly

I'm trying to learn how to make graphics in Python. I did one now and it was not very good: AlldatesareonApril10,2017,onlycomingfrom07:50a.m.to08:40p.m.(GMT-3h)Inthefigure,itappeareduntilthedatetodayand,asaresult,thepointsdisappeared.Ontheti...
asked by 29.05.2017 / 01:29
2
answers

Which equivalent operator is different in Python?

I know some other operators: Greater than: > Less than: < Equality: == But what about the "different" operator, as it is in Python?     
asked by 25.06.2018 / 22:37
2
answers

Make server socket not tkinter allow client input

The program works correctly, it creates a server for your user, the server opens without problems. But when I use a client to access it, the following message appears on the server client:    Traceback (most recent call last):     File "C: \...
asked by 04.01.2017 / 17:30