Questions tagged as 'python'

0
answers

Doubt in class diagram [closed]

What steps to create a class diagram of a project done with Django? How can I represent MVC in the diagram? My project has only one Post class: from django.db import models from django.utils import timezone class Post(models.Model): autho...
asked by 10.06.2016 / 15:24
2
answers

Problem in Inserting an Array

Well, I'm trying to learn python because it seems to me a language with some interesting applicability in the most diverse areas (and I'm interested in raspberry). As I am learning, I like to go about something that I need to apply the knowle...
asked by 13.06.2016 / 22:55
0
answers

Selecting and deleting random csv lines in python [closed]

I need to make a small python script that meets the following requirements: Open a csv file; Exclude from reading the first line and the first column, because it contains information that will not be necessary in this computation itself;...
asked by 24.07.2016 / 04:55
0
answers

Communication of an Android client with Python server

I have an extremely basic Python server and an Android client, but I can not establish the connection. I have a client also done in Python and another in Java, and both connect perfectly to the server. I've tried different versions of Android...
asked by 27.05.2016 / 22:02
2
answers

How to insert checkbox dynamically from Python / Flask code?

I'm trying to create a script in Flask and I came across the following situation: I have in my code a for which scans the subdirectories of a root directory: for root, dirs, files in os.walk(destination): for name in dirs: ......
asked by 16.05.2016 / 15:06
2
answers

Various keys and values, dictionary comprehension

I've been playing around with python, dict and list comprehensions. I made this little script: import requests url = 'http://www.bankofcanada.ca/en/markets/csv/exchange_eng.csv' resp = requests.get(url) page = resp.text lines = [line for li...
asked by 10.05.2016 / 16:06
0
answers

Disable standalone windows on Tkinter

I need to create submenus in a Tkinter application. For this, I'm using Toplevel . However, it is crucial that when opening a submenu, the main window is disabled, which is not the case with Toplevel . Even with the submenu open, the...
asked by 22.04.2016 / 07:29
3
answers

How do I access a list resulting from one function in another?

I have a function in which I get a list and I want to use this list in another function: def funcao1(): ... lista1 = [.....] def funcao2(): #preciso de chamar a lista aqui     
asked by 28.04.2016 / 17:17
0
answers

Thread Synchronization in python

I'm doing a program that should simulate file synchronization between two threads, but I do not know much about the python language. I've already created threads, lock methods, and files. However I can not make the run select a file at the sourc...
asked by 27.04.2016 / 15:44
0
answers

A good book to start in python 3 [closed]

Speak people, I'm looking to start my studies in python, I started taking the course of the code academy to get the basics, but I wanted a good book for beginners, I heard very well the "Learn Python the hard way", but it happens in python 2, an...
asked by 20.05.2016 / 06:04