Give follow python function define:
def Foo(a=0.1, b=1.6):
pass
when I call ‘help(Foo)’, I will get:
Help on function Foo in module __main__:
Foo(a=0.10000000000000001, b=1.6000000000000001)
But I wish get:
Help on function Foo in module __main__:
Foo(a=0.1, b=1.6)
dear all of you, is there a way to print this pretty?
In Python 2.7, this happens by default.
In earlier versions of Python, there is no easy way to change this behavior.