如:
typedef struct {
int timelineId;
size_t len;
WalRecord *walrec;
} WalData;
相當於只希望一個應用只有一個單例。對應於設計模式中常說的單例模式。
https://blog.csdn.net/weixin_40283460/article/details/112704812
如:
typedef struct {
int timelineId;
size_t len;
WalRecord *walrec;
} WalData;
相當於只希望一個應用只有一個單例。對應於設計模式中常說的單例模式。
https://blog.csdn.net/weixin_40283460/article/details/112704812
import sys sys.path.append('../..') sys.path.append('.') sys.path.append('./') 把這些路徑都加入sys.path就找到了.