Questions tagged as 'python'

1
answer

Mobile application development in Python

Is there any way to develop for mobile operating systems with Python (Android, Windows Phone and iOS)? How do I start this? Softwares to use etc. My main focus is Windows Phone.     
asked by 01.04.2015 / 05:47
2
answers

Insert in Postgres with Python is not working

I need to include data and a database of mine, but I can not and am not sure how to solve the problem. My code is as follows: import psycopg2 conn=psycopg2.connect("dbname='teste' user='postgres' host='localhost' password=''") c = conn.cur...
asked by 21.12.2018 / 17:42
1
answer

Start reading txt from a specific line in Python [duplicate]

I have some txt files that follow a pattern:    link   Thieves get caught after sending selfies with stolen iPad to iCloud victim    There are several types of meliantes Those you have never heard [...] That is:    original link...
asked by 20.12.2018 / 21:07
1
answer

Error in os.system () python [closed]

I have a python script that needs to run other software multiple times, I'm trying to do this using the .system ("command"), but this function always returns me -1 and it does not work, / p> PS I'm using python 2.7     
asked by 20.05.2014 / 18:20
1
answer

How to create a JSON map based on indented file

Hello, I have a problem that is the following I have a map with the following format and I need to create a script that converts that map to a specific JSON template in python: Map template: TELEFONIA + CELULAR + CORRETOR + a...
asked by 07.12.2018 / 17:04
1
answer

Opening a URL from Tkinter

Is it possible to link a site using Python code? For example, in a menu made in Tkinter (Object Orientation) I wanted to click the button and be redirected to a website.     
asked by 07.12.2018 / 15:24
1
answer

Save return of fields in variables in python

I made a query in mysql with python and show the result: cursor = db.cursor() cursor.execute("SELECT Dias, HoraConsulta, HoraSaida, nome, Consulta, centrodb.LocalConsulta.Descricao, Contato FROM centrodb.RegistoConsultas LEFT OUTER JOIN ce...
asked by 06.12.2018 / 17:55
1
answer

How to get the last update date of a file in python [closed]

I would like to know how can I get the complete date (day / month / year and hour / minute / second) of the last update of an excel file?     
asked by 11.12.2018 / 18:35
2
answers

Saving a Dictionary in a Python File

I have a function that tells how many times the words appear: def countWordExact(dataClean): count = {} dataFreq = [] for word in dataClean.split(" "): if word in count: count[word] += 1 else:...
asked by 11.12.2018 / 01:28
1
answer

Operation with Factors of thehuxley.com site

Inputformat:AnintegerxcorrespondingtotheXoftheequationandanintegernindicatingthenumberoftermsintheseries,theinputendswhenx=0andn=0.OutputFormat:Afloating-pointnumberformattedtosixdecimalplaces.Whereistheerror?IdonotknowifI'mdoingitright.Bysubmit...
asked by 07.06.2014 / 04:59