python int是python把任何类型转换成int类型的方法,但是你如果运用不好的话,会引发异常,但是python的str字符串转换方法运用起来倒是比较安全,它把任何对象转换成字符串类型都不会报异常。现给个python int的例子:比如a = '123' b = int(a) print b... Read More
posted @ 2014-09-15 17:45 siyed Views(1739) Comments(0) Diggs(0) Edit