我想打印这样的输出:Percentual de sapos: 25.00 % 我写了以下代码:
print("Percentual de sapos: %i.2f %"%Z)
但它没有用。如何在python的输出中打印“%”..?
print("Percentual de sapos: {:.2f} %".format(Z))
这个问题重复了:我怎样才能有选择地逃避...
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句