Printing the floating point without any leading or trailing spaces

前端 未结 0 1414
没有蜡笔的小新
没有蜡笔的小新 2020-12-17 01:44

I built a function in Python and the answer needs to be to three decimal spaces.

def function(variable1, variable2):
           #doing stuff

print(\'%.3f\' %         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题