Questions tagged as 'python'

0
answers

how to run eprimer3 via terminal and through biopython? there is not a problem with the code, but rather with the eprimer3 command. Suggestions? [closed]

neemias @ debian: / $ python Python 2.7.9 (default, Aug 13 2016, 16:41:35) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. import Bio from Bio.Emboss.Applications import Primer3Commandl...
asked by 24.07.2017 / 01:25
0
answers

How to make the libreoffice interpret the signal from - sent by program in python?

Hello, I'm trying to use worksheet.write_formula(row,col+5,'=B%d-E1'%(row+1)) to write a formula in CALC, but the minus sign seems to be being interpreted incorrectly in Libreoffice and I need to manually change the signal. Would you know...
asked by 22.07.2017 / 21:01
2
answers

How to coverter string for timestamp object?

How can I transform a string containing a date, for example: 'Thu Jul 27 13:54:22 2017' , into a datetime object, or time?     
asked by 27.07.2017 / 19:28
2
answers

Generate random numbers without repeating the previously generated number [duplicate]

I'm trying to make a program that simulates the game "Door of Hope" of Silvio Santos in Pyton and I need the program to generate a random number, excluding the number generated previously. I did this: premio = rd.randint(1,3) p = int(premio...
asked by 19.07.2017 / 21:33
1
answer

Shaving list on site with beautifulsoup

I need to scrape into Python a list on a website. Only the first list My code looks like this: import requests from bs4 import BeautifulSoup page = requests.get("http://www25.senado.leg.br/web/atividade/materias/-/materia/votacao/2363507")...
asked by 15.08.2017 / 21:45
2
answers

How to compile Python code in Sublime Text 3 running on Linux operating system? [closed]

I'm editing the question to better explain what my question was. I'm a linux user and I'm starting web projects in Python. So I made use of the text editor, Sublime text 3, but it has a problem to execute code in Python, getting paralyzed or...
asked by 17.08.2017 / 02:10
2
answers

Python 3.x Show data typed in an Entry in a Label only after pressing a button

I wanted to know the following; In my program there are: Entry1 - > where the user types some information btn1 - > where it confirms the name and the previously entered data is displayed in the console
asked by 10.07.2017 / 06:09
1
answer

Rendering Foreign Key in Django

I am using CreateView in django and rendering my components with tweak widget would like to know if there is any way to swap this first combo option rendered form in the template {% render_field form.category class="form-control" %}...
asked by 10.07.2017 / 03:01
0
answers

Receiving user input, using Django Class Based Views

   If you need more information about the problem (urls.py, complete template code, etc.) just ask that I post, I just did not put it to not pollute the post a lot. Problem overview: Refresh the chart created in a view according to user in...
asked by 10.07.2017 / 18:56
0
answers

Problems connecting to ldap using python ldap

I'm new to python, and I'm trying to make a connection to LDAP to check for an Active Directory user, however, when trying to connect to ldap using the following code snippet: l = ldap.initialize('ldaps://%s'%ldap_server,port) l.bind(username,...
asked by 31.07.2017 / 19:44