python: 변수가 배열인지 스칼라인지 식별하는 방법 는 인수를 받는 .NBins로 이 50 """""""""""""""""[0, 10, 20, 30] 알 수 NBins스칼라인지 벡터인지, 아니면 다르게 말할까요? 이거 해봤어요. >>> N=[2,3,5] >>> P = 5 >>> len(N) 3 >>> len(P) Traceback (most recent call last): File "", line 1, in TypeError: object of type 'int' has no len() >>> 보다시피, 나는 지원할 수 없다.len로로 합니다.P...뭐이 is 거?isarray ★★★★★★★★★★★★★★★★★」isscalar★★★★★★★★★★★★? 감사합니다.>>> import collections..