- Pythonのお勉強 Part51 [転載禁止]©2ch.net
721 :デフォルトの名無しさん[sage]:2016/10/26(水) 02:16:55.39 ID:tP3geMHY - 質問です
>>> import ctypes >>> type(ctypes.ARRAY(ctypes.c_int, 1)(9)) <class 'numpy.ctypeslib.c_long_Array_1'> >>> type(ctypes.ARRAY(ctypes.c_int, 2)(9,8)) <class 'ctypes.c_long_Array_2'> >>> type(ctypes.ARRAY(ctypes.c_int, 3)(9,8,7)) <class 'ctypes._endian.c_long_Array_3'> >>> type(ctypes.ARRAY(ctypes.c_int, 4)(9,8,7,6)) <class 'ctypes.c_long_Array_4'> >>> type(ctypes.ARRAY(ctypes.c_int, 5)(9,8,7,6,5)) <class 'ctypes.c_long_Array_5'> >>> type(ctypes.ARRAY(ctypes.c_int, 6)(9,8,7,6,5,4)) <class 'ctypes.c_long_Array_6'> >>> type(ctypes.ARRAY(ctypes.c_int, 7)(9,8,7,6,5,4,3)) <class 'ctypes.c_long_Array_7'> >>> type(ctypes.ARRAY(ctypes.c_int, 8)(9,8,7,6,5,4,3,2)) <class 'ctypes.c_long_Array_8'> なぜ1と3だけ仲間はずれなのでしょう?
|