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
- CanDrA
- C++
- GSX 1000 pro
- MSVC++
- 볼륨 조절
- TensorBoard
- structure
- 볼륨 낮춤
- PyQt
- Python
- QPrinter.A4
- Item 9
- how to solve it
- QPrinter.Letter
- GSX 1200 pro
- dll
- volume dial
- Visual C++
- QT
- 설치
- matrix multiplication
- pandas
- armadillo c++
- TCGA
- tensorflow
- destructor
- cython
- 이상한 문자
- ctypes
- Accelerated C++
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
글 보관함