转自
例如:"a{0:.2f}_b{0:.2f}.format()"不同于c++中是使用%0.2f,python中使用的是::.2f
python format格式转化
猜你喜欢
转载自blog.csdn.net/qq_34291583/article/details/97614794
今日推荐
周排行