原创 django使用token認證authenticate
前不久參照官方文檔https://docs.djangoproject.com/en/dev/topics/auth/#other-authentication-sources,採用自己添加的backend重寫了authenticate方
原创 數據結構之單鏈表C語言實現
離找工作日近,現將每日複習內容貼於此,以便複習使用。 單鏈表C語言實現 正確在筆試面試時用筆實現單鏈表,首先重要的是明確鏈表結構的定義。因此下面定義非常重要: struct Node; typedef struct Node *PtrT
原创 冒泡排序
冒泡排序 時間複雜度O(n2),穩定排序。 void BubbleSort(SqList *L) { int i,j; for(i = 1; i < L->length; i++) { for(j = L->length - 1