python-2.4
python2.4.3: format bug?
Here is an example: >>> \"%.2f\" % 0.355 \'0.35\' &g开发者_C百科t;>> \"%.2f\" % (float(\'0.00355\') *100)[详细]
2023-02-07 09:34 分类:问答Resize an image with python 2.4: The _imaging C module is not installed
How to resize an image with python 2.4 ver开发者_Python百科sion.I am trying t make it a thumbnail[详细]
2023-02-03 07:52 分类:问答What can be used instead of parse_qs function
I have the following code for parsing youtube feed and returning youtube movie id. How can I rewrite this to be python 2.4 compatible which I suppose doesn\'t support parse_qs function ?[详细]
2023-02-03 05:05 分类:问答Python, how can I print the current datetime on the same line as a text message?
First experiences with Python here, I want to be able to print out some text with the current time/date as the first item on the line.[详细]
2023-01-31 21:26 分类:问答What can be used instead of ast module?
In my project I evaluate a json data to extract information. The code is as follows : conn = httplib.HTTPConnection(host)[详细]
2023-01-31 10:29 分类:问答Is it possible to reset locale to the portable locale?
According to the Python documentation: \"a program which has not called setlocale(LC_ALL, \'\') runs using the portable \'C\' locale.[详细]
2023-01-27 05:47 分类:问答Why won't this python script work on wild cards in filenames in Win XP?
What should I change to make in work on Windows-XP keeping in mind we are working on Python 2-4 ? \"\"\"[详细]
2023-01-23 03:18 分类:问答JSON module for python 2.4?
I\'m accustomed to doing import json in Python 2.6, however I now need to write some code for Python 2.4.Is there a JSON library with a similar interface th开发者_JS百科at is available for Python 2.4?[详细]
2023-01-08 15:08 分类:问答XML to/from a Python dictionary
I need to use Python 2.4.4 to convert XML to and from a Python dictionary. All I need are the node names and values, I\'m not worried about attributes because the XML I\'m parsing doesn\'t have any. I[详细]
2023-01-07 22:21 分类:问答Saving stdout from subprocess.Popen to file, plus writing more stuff to the file
I\'m writing a python script that uses subprocess.Popen to execute two programs (from compiled C code) which each produce stdout. The script gets that output and saves it to a file. Because the output[详细]
2023-01-06 10:24 分类:问答