![]() |
|
#2
|
|||
|
|||
|
Here's a code sample that shows how to parse the string "10,10,10" into a list of floating point numbers:
Code:
s = "10,10,10"
pos = [ float(x) for x in s.split(',') ]
print pos
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| writing joystick position to a data file | Saz | Vizard | 3 | 12-17-2008 06:18 AM |
| String within a string problem? | Elittdogg | Vizard | 1 | 08-29-2008 02:35 PM |