Python80 db class ][leveldb 사용하기 db class ][leveldb 사용하기 2017. 10. 13. ctypes class ][ python에서 c++ class 사용하기 ctypes class ][ python에서 c++ class 사용하기 ■ git # # https://github.com/SpeeDr00t/code/tree/master/python/0x04-ctypes/0x01-helloworld # # ■ hello.cpp // // // // write by kyoung chip , jang // // g++ -c -fPIC hello.cpp -o hello.o // g++ -shared -Wl,-soname,libhello.so -o libhello.so hello.o // // #include #include #include #include using namespace std; class CHello { private: vector m_vec; public: .. 2017. 10. 8. shared memory ][ c++과 python간 shared memory 연동 shared memory ][ c++과 python간 shared memory 연동 tag : HSJF-CDQF-QNQA-XRRC ■ shmwriter.cpp ■ shmreader.py https://youtu.be/7s44AJ3yen4 2017. 10. 6. gzip class ][ gzip header 정보가져오기 gzip class ][ gzip header 정보가져오기 # -*- coding: utf-8 -*- # # write by kyoung chip , jang # import urllib.request import gzip class CGzip : def __init__( self ) : pass def getFileHeader( self , url ) : with urllib.request.urlopen(url) as response : with gzip.GzipFile(fileobj=response) as uncompressed: file_header = uncompressed.read(64) print( ( "file header = %s ") % ( file_header ) ) if __name_.. 2017. 10. 6. 이전 1 ··· 10 11 12 13 14 15 16 ··· 20 다음