about streamtoken

Lin Armis armislin at hotmail.com
Sat Apr 10 23:41:46 EDT 2004


hi all:
In java,there is streamtoken method to deal with input string.
how does the python do this work?
Supposed that input "aa/dd/as/23/a22",I wanna  the string "23" change to 
int('23'),but how can I tell the diffrent between '23'and 'aa' in the all 
strings?in java ,I can use streamtoken to recognize the number type and 
string type from input,but i dont know how is in Python.

cheers,

Mian

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  





More information about the Python-list mailing list