源代码
#Use "e" to convert a number into scientific number format (with a lower-case e): txt = "We have {:e} chickens." print(txt.format(5))
运行结果