python print exponential notation
refer to code:
-
x = 0.003
formatted_x = "{:.1e}".format(x)
print(formatted_x) # Output will be "3.0e-03"
--
The study blog from marearts.com
Computer Vision & Machine Learning Research Laboratory
refer to code:
-
--
Comments
Post a Comment