Questions tagged as 'python'

0
answers

python thread inside thread

I have a process that needs to break into multithreads, basically it works like this: It has Phases every phase has a process queue, each process has several files to process. Type Phase1 > Fila1, Fila2, Fila3 > Fila1: Process1: File1,...
asked by 28.11.2018 / 13:38
1
answer

Access Tag via beautifulsoup

Hello, I'm having trouble accessing the price that is in the third line of the code via beautifulsoup. Does anyone have any idea how to access?                                               <span id="ctl00_Conteudo_ctl01_spanPrecoP...
asked by 05.12.2018 / 14:49
1
answer

I need a one to many relationship between 3 tables

Hello, I have the table People, Vehicles and Monthly who are the users that pay per month the precise stamping that each person can have more than one vehicle, but when registering in the monthly table when selecting a persona appear in the othe...
asked by 11.12.2018 / 09:26
0
answers

Calling Functions by Shell

Type the maior_primo function that receives an integer greater than or equal to 2 as a parameter and returns the largest prime number less than or equal to the number passed to the function. Examples of Python shell execution: >&g...
asked by 11.12.2018 / 01:20
1
answer

Buttons with dynamic images with kivy

Problem I have a button with circular image, with the image in the ratio 1: 1, and when executing the code (below) the program generates a screen with aspect ratio of 1: 1, but it is possible to resize the screen and change its aspect ratio a...
asked by 11.12.2018 / 02:23
0
answers

How to resume the Turtle panel?

I'll explain the code before explaining the problem. Here's the question: the program starts to run and shows a window with the button "Elementary School" (this is detail for the project). You click the button and it opens two windows: the Turtl...
asked by 01.12.2018 / 13:49
1
answer

How to check the latest file in a folder with Python?

Assuming you have a folder with several TXT files with different names and need to know the latest file, how do I do this using Python?     
asked by 20.04.2018 / 14:13
1
answer

Find all the different elements of a column (pandas)

I developed this part with the functions learned in the classroom #importando pandas import pandas as pd #criando o dataframe base = pd.read_csv('C:\Users\lsilv\Desktop\acessos.csv') #renomeei as colunas para ficar mais fácil de usar base.colu...
asked by 30.11.2018 / 16:29
1
answer

Python Module Import Problem

I have a problem, I use Python 3.6.7 and I'm doing a Flask application with the following structure: /app /arquivospy consultaMercados.py definirMercados.py interfaceBD.py main.py outros arquivo...
asked by 23.11.2018 / 04:04
1
answer

How to create a list of objects of variable size, and assign their attributes without listing them one by one?

I need to read a file and pass its information to a list of objects. The file is in the format: "attribute1", "attribute2", "attribute3", ..., "attributeN" Each line contains the information for a different object. All objects are of the s...
asked by 28.11.2018 / 15:47