0

learn 的Python解释器是3.0还是2.0怎么不能用format函数

use of format function in python

9th Jun 2018, 5:11 AM
高文博
高文博 - avatar
3 Answers
+ 6
https://docs.python.org/3/library/functions.html#format go through this link it will help you
9th Jun 2018, 6:28 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 4
高文博 我这里没问题啊 value = 1.99 print("{0:1.3f}".format(value))
9th Jun 2018, 7:05 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Translation: Can we use format function on Python 3.0 or 2.0?
9th Jun 2018, 6:25 AM
Calviղ
Calviղ - avatar