发布时间:2019-09-06 08:57:35编辑:auto阅读(2445)
字符串转化为数字 #coding=gbk #字符串转化为实数 def strtonum( s , defaultValue=0): #字符串转化为整数 def strtoint( s , defaultValue=0): A = [ "123","456","8812.90","1.2345E-6","-9.1E1" ];
SM = 0
for i in range(0,len(A)):
print( "SM=",SM)
字符串变为数字 string.atoi(s,[,base]) //base为进制基数
浮点数转换 string.atof(s)
上一篇: python-PIL模块画图
下一篇: python中@staticmethod
53642
40473
34893
30617
25490
25270
23705
19149
15278
14788
1306°
1214°
1296°
1322°
1341°
1516°
1466°
1403°
1502°
1456°