python float转化为int_python float转int
一、int函数能够(1)把符合数学格式的数字型字符串转换成整数(2)把浮点数转换成整数,但是只是简单的取整,而非四舍五入。举例:1 aa = int("124") #Correct2 print "aa = ", aa #result=1243 bb = int(123.45) #correct4 print "bb = ", bb #result=1235 cc = int("-...