Convert String to Int and Arithmetic

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Wed Jun 13 06:31:43 EDT 2007


Kay Schluehr:
> >>> int(cpuSpeed.split(":")[1].strip())

Probably this suffices:

int(cpuSpeed.split(":")[1])

Bye,
bearophile




More information about the Python-list mailing list