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