Set global output precision python

前端 未结 4 1978
清酒与你
清酒与你 2021-01-04 19:56

I\'ve written a library of functions to make my engineering homework easier, and use them in the python interpreter (kinda like a calculator). Some return matrices, some ret

4条回答
  •  隐瞒了意图╮
    2021-01-04 20:48

    You could add str methods (assuming you don't already have them) for your number and matrix results, and make them always use the same .format or %f.

提交回复
热议问题