int i=10; double d=(i*1.0)/10; 转载于:https://www.cnblogs.com/applesuch5/archive/2008/12/04/1347313.html