方法一:使用格式化字符串来实现:
print "%e" % 0.0001
方法二:修改floatobject.c里format_float里snprintf的参数,然后重新编译。
如果解决了您的问题请采纳!
如果未解决请继续追问!