Created
May 5, 2014 02:26
-
-
Save wynnzen/10c585a86c18bd39c644 to your computer and use it in GitHub Desktop.
字符串转换成数字
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
a="12345" | |
string.atoi(a) #转整型 | |
b="123.678" | |
string.atof(b) #转浮点数 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment