difference: repr(a) and str(a)
日期:2010-01-20 05:47:00
点击:0
好评:0
In my program, I have value a=0.24 when I say : str(a) it prints 0.24 when I say: repr(a) ir print '0.24' Why does str(a) not work? Thanks|||In...
Cross-Compile Python for Windriver
日期:2010-01-20 05:46:59
点击:0
好评:0
Hello All, I need to cross compile Python for Wind River Linux(MIPS). Please give me the steps to do the same. Thanks...
Flip coin problem
日期:2010-01-20 05:46:56
点击:0
好评:0
At first I had no idea where to start. Finally I tried to get somewhere and I am still stuck. I wrote two different ways using while loop and for loop. Below are codes for both. I am getting errors different places for each loop. For this code I am ge...
Python maze question
日期:2010-01-20 05:46:55
点击:0
好评:0
I'm having some issues with a maze solver that I'm coding for an assignment. Here's what I have so far: Expand|Select|Wrap|Line Numbers |||Let us assume your maze is a str object with the...
Comparing somewhat irregular data, counting and printing!
日期:2010-01-20 05:46:44
点击:0
好评:0
Here's the problem: Word POS AB'C'NNP DEF'CC GH'I'NNP JKL 'CD MN'O'CG -...
Combination iteration
日期:2010-01-20 05:46:44
点击:0
好评:0
Hi All I was writing a bit of code to solve Euler Project #90, and came across the need to iterate through all combinations of a particular list. Any improvements would be most welcome, but I thought a class with an iterator would be appropriate. Here...
maze generator
日期:2010-01-20 05:46:34
点击:0
好评:0
It's been alot of question on how-to do a maze solver. However, a more fun task would be to make a maze generator (which basically is the same problem). Run this piece of code: Expand|Select|Wrap|Line Numbers |||Would be more helpful if you explained...
Different search categories in a list
日期:2010-01-20 05:46:33
点击:0
好评:0
I'm doing a library for DVD-movies and I'm trying to figure out how to search different categories like director, title, actor etc. (which are all variables in a DVD-class). Previously I did like this: Expand|Select|Wrap|Line Numbers |||Without seeing...
Graphics color library
日期:2010-01-20 05:46:31
点击:0
好评:0
Is there a way to check if a user has input a valid color from the graphics color library? I'm planning to write a getValidColor() function for my program that accepts input from a user in the form of a string (i.e....
plotting
日期:2010-01-20 05:46:28
点击:0
好评:0
Dear all, I was wondering if there is equivalent in python of this Matlab function: PLOTCLR(X,Y,V) plots the values specified in V as a color coded scatter plot at the locations specified in the vectors X and Y. The current colormap of the figure is u...
Basic Python Validation
日期:2010-01-20 05:46:25
点击:0
好评:0
Having difficulty creating error handling when inputting an integer dvdQuant = input(...
What's wrong with this code?
日期:2010-01-20 05:46:24
点击:0
好评:0
Activity 2: Find the Pyramid Randomly place a pyramid (yellow, large turtle) on the screen. Have a second turtle move randomly until it is close to the pyramid. Stop the seeking turtle once it has found the pyramid. So here's my code. from random impo...
out of memory error on python 2.5.4 XP
日期:2010-01-20 05:46:20
点击:0
好评:0
Hello, I hope someone can help. I am using Python 2.5.4 (under python(x,y) umbrella) on XP SP3, and running a grammatical evolution program that runs recursions on equations that grow via nested recursive loops: the program is PonyGE from the google r...
Game
日期:2010-01-20 05:46:20
点击:0
好评:0
Hi, I´m traying to create a Bulgarian Patience game in python 2.6. I have no idea how to create this, The rules are simple. The user chooses 2-52 cards and divides them in heaps. Then one card will be taken from every heap and create a new one. examp...
Telit GPS:sending the location data to the mobile through GS
日期:2010-01-20 05:46:19
点击:0
好评:0
Hi All, I am working on telit GM-862 GPS module.I have tried to get the location data through sms.I have been able to do it to some extent but not succesful.I am getting the SMS to the mobile but not getting any data other than i am recieving blank me...
Loops and checking for string starts
日期:2010-01-20 05:46:16
点击:0
好评:0
I've started with Python recently, reading a book. Unfortunately, I've come through an error I do now know how to resolve. If you could please help me, it would be greatly appreciated. Expand|Select|Wrap|Line Numbers |||In Python 2.5 and above, you ca...
limit Python CGI's frequency of calls to an external databas
日期:2010-01-20 05:46:12
点击:0
好评:0
I've got a Python CGI script that pulls data from a GPS service; I'd like this information to be updated on the webpage about once every 10s (the max allowed by the GPS service's TOS). But there could be, say, 100 users viewing the webpage at once, al...
how do I extract data from html file ? - web scraping
日期:2010-01-20 05:46:12
点击:0
好评:0
Hi guys , Im a little unfamiliar with Python . Hope you can take a look at this: Im trying to extract the number 7.2 from the html string below using python: Expand|Select|Wrap|Line Numbers |||Please use code tags when posting code. The question mark...
pickle
日期:2010-01-20 05:46:07
点击:0
好评:0
Dear all, I have the following error:...
second run of my program
日期:2010-01-20 05:46:06
点击:0
好评:0
I have a very large object. When I run my program first time it runs just fine. But if I want to re-run it it fails by saying that it is out of memory. Any suggestions? Perhaps, should I call destractor (sp?) after I am done working with my object and...
Firefox Accessibility with Python
日期:2010-01-20 05:46:04
点击:0
好评:0
I am working on a program that would make firefox accessible to locked-in patients. What I need to be able to do is from python, find all the links and buttons on the active web page. I need to be able to find their physical locations on the screen, a...
How to handle output window minimize/movement in interactive
日期:2010-01-20 05:46:03
点击:0
好评:0
I want to dynamically update the scatter plot based on the y-axis data received from a socket connection. I used python matplot lib in interactive mode to do this, but during dynamic updation if i move the window to a different location or minimize th...