Ensure a variable is an array, regardless if it is a list or a scalar

后端 未结 0 1636
后悔当初
后悔当初 2020-12-02 22:07

I often find in the situation where I need to be sure that x is an array-like object, regardless of whether it comes to me as a float or as a list.

I ult

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