1073 Scientific Notation (20 分) Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9].[0-9]+E[+-][0-9]+ which means that the integer portion has…
1060 Are They Equal (25 分) If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0 with simple chopping. Now given the number of significant digits on a machine and tw…
问题描述:excel表中的一些数据会以文本格式格式保存,例如一些较长的编号.银行账号.身份证号等,再python中导出文件后,会发现数据以科学计数法显示,影响后续使用. data2_3.to_excel("F:\\大论文实验\\数据处理\\贫困户数据2015.xlsx") 解决方法:在数据导出之前,将需要处理的信息列添加 \' 或空格 data2_3['贫困户编号']=['\'’%i' % i for i in data2_3['贫困户编号']] data2_3.to_excel(&q…