2020欧洲杯手机版注册

Search less. Build more. Use Stack Overflow for Teams at work to share knowledge with your colleagues. Free 30 day trial. Start your trial.

Questions tagged [python-3.x]

For questions about Python programming that are specific to version 3+ of the language. Use the more generic [python] tag if your question is not version-specific. Use the [python-2.x] tags for Python 2 questions.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

python while loop asks for input twice

i am trying to learn about the while loop and am trying to build something with it. i have a function that will hold a choice that the user will make but every time i run it the script is asking for ...
0
votes
0answers
19 views

What is wrong with my setup.py to install all dependencies in python 3.8.1

I have the below setup.py script. When I execute the command setup.py install, I do not see the python packages installed in my system. In case of java, we use maven or gradle so that it can ...
0
votes
0answers
8 views

Interpolating correctly Python 3.6

I want to remove all non integer values from array A. and then apply those changes to Z. Z is a range from 0 to 183000 with 10 increments so: Z = [ 0 10 20 30 40 ... 183000 ] newA = A[~np.isnan(A)....
0
votes
0answers
18 views

i am confused how to make the while loop repeat like needed in the task

This is the task that I need to do: The game stores a list of song names and their artist (e.g. the band or solo artist name). The player needs to try and guess the song name. The game is played as ...
0
votes
0answers
28 views

Using regex to find emails (Theory question)

Okay so I wrote code to take a text file, find all the emails in it, remove duplicate emails put the remaining emails in a new list, and then write that list to a new file. import re textFile = open(...
0
votes
0answers
5 views

Running Test Suite from list of tests Nose2

I am currently using the code below in order to run a series of tests in unittest python, however have decided I want to use Nose2 instead. I cannot find any working examples of how to build and use a ...
0
votes
3answers
27 views

How to save list becomes an image in python?

pix = [[[90, 94, 6], [126, 108, 24], [180, 116, 42], [166, 116, 46], [72, 94, 31]], [[101, 96, 14], [190, 165, 84], [202, 134, 63], [170, 115, 50], [40, 50, 0]], [[145, 125, 53], [150, 112, 40], [148, ...
0
votes
0answers
8 views

Should I avoid using http.server for any application meant to run in production?

I've read the documentation for http.server, since I'd like to use a relatively low-level Python framework for HTTP servers and don't require all kinds of advanced features. However, http.server's ...
0
votes
0answers
19 views

__getattr__ on module doesn't behave the way the PEP suggested

I am using Python 3.8.1, and since 3.7, we can use __getattr__ on modules to import import undeclared attributes. According to PEP 562 (http://www.python.org/dev/peps/pep-0562/): The __getattr__ ...
0
votes
1answer
7 views

Unable to compare the given input of lat and long with generated co-ordinates

In the below prg I'm able to generate lat and long of given max and min co-ordinates. But I'm unable to compare the given input of lat and long with generated co-ordinates and display whether the co-...
0
votes
2answers
11 views

Python saving file to Wrong path

My intention for the code bellow is to save a file inside a folder. But the file is beeing saved on the folder before the correct one. How can i modify it so it saves the file to correct folder? ...
0
votes
0answers
16 views

Python MKDIR not creating file and filepath.rename not working

I am trying to create a quick program to help me organise my files but for some reason MKDIR is not creating a directory in my folder and rename is not renaming any of the files in the folder so I can ...
0
votes
1answer
8 views

Arrange boxplots as a grid with seabor `FacetGrid`

I have a data frame with three columns Features, CV-fold, Accuracy, Network. I want to have a boxplot for each Network, grouped by the Features and the CV-fold for the axis (see example image). df = ...
0
votes
0answers
7 views

pyTelegramBotAPI , when selecting markup second time, bot.message.handler is not changing

I am developing a telegram bot,(im new at it) that searching word by GET requests to dictionary api. For choosing the language I used InlineKeyboardMarkup. Its working. But after choosing language ...
0
votes
0answers
11 views

using os.cpu_count() on a pixelbook [duplicate]

I have recently obtained a pixelbook (i7-7Y75) and although I know this processor has 2 cores I wanted to check that nothing odd had happened in the setup of anoconda in crostini (the linux sandbox on ...

15 30 50 per page
1 2 3 4 5 14008