Python-print格式化输出

 tips: 1. 冒号前的数字为格式化输出的序号(从0开始),可以通过修改该序号来调整format格式化输出结果                                       

format中元素序号: format(0, 1, 2, ..., n)

不难看出 c = 0.5 d = 3 而程序先输出了d后输出c

 

posted @ 2020-08-01 09:18  WuhuAirforce  阅读(168)  评论(0)    收藏  举报