ctypes를 이용하여 MSVCRT의 qsort로 python 객체 배열 정렬(sorting)하기
# First of all, need to read python doc. about ctypes.. from ctypes import * class Obj(Structure) : _fields_ = [("name", c_char_p), ("id", c_int)] class Person(Structure) : _fields_ = [("stInfo", Obj)] def __init__(self, person=None): self.stInfo = Obj() if person is not None : self.stInfo = person.stInfo def __str__(self) : return "I'm %s, and my id is %d" % (self.stInfo.name, self.stInfo.id) q..
Python/요리 방법
2009. 11. 4. 21:01
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- cython
- dll
- tensorflow
- MSVC++
- matrix multiplication
- 설치
- CanDrA
- TensorBoard
- Accelerated C++
- pandas
- TCGA
- C++
- Visual C++
- 볼륨 낮춤
- 볼륨 조절
- Python
- QPrinter.A4
- PyQt
- armadillo c++
- structure
- GSX 1200 pro
- QPrinter.Letter
- how to solve it
- volume dial
- Item 9
- ctypes
- 이상한 문자
- GSX 1000 pro
- destructor
- QT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함