how can I tell if a function can be used in a context manager?

后端 未结 0 1293
粉色の甜心
粉色の甜心 2021-01-24 06:26

To change the printing precision of numpy array x, I\'ve been using this:

with np.printoptions(precision=2, suppress=True):
    print(x)
相关标签:
回答
  • 消灭零回复
提交回复
热议问题