原创 問題解決:dyld: Library not loaded: /System/Library/Frameworks/Ruby.framework/Versions

系統升級到MacOS Catalina 10.15後,MacVim無法使用,報錯如下: dyld: Library not loaded: /System/Library/Frameworks/Ruby.framework/Ver

原创 問題解決:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)

更新完MacOS 10.15,同時XCode更新至11.1後 使用VSCode編譯cpp時出現了這個錯誤: xcrun: error: invalid active developer path (/Library/Develop

原创 OpenMP並行實現枚舉排序

程序通過生成隨機數組,利用OpenMP實現並行化的枚舉排序算法,並與串行算法進行了比較。 #include <omp.h> #include <time.h> #include <string.h> #include <stdi

原创 關於Scrapy ItemLoader、MapCompose、Compose、input_processor與output_processor的一些理解

本文以一個噹噹網圖書出版社信息舉例,說明Scrapy中,ItemLoader、MapCompose、Compose、input_processor與output_processor的一些使用事項。 先給出spider與item

原创 Vue錯誤記錄:ajax get後數組與對象的轉換

api接口: [{"comment_nums":2242816,"rank_year":2016,"rank":2,"url":"http://product.dangdang.com/23464478.html","book_n

原创 mongodb安裝與使用

學習自: MongoDB基礎入門到高級進階_嗶哩嗶哩 (゜-゜)つロ 乾杯~-bilibili、 【小馬技術】MongoDB 從入門到學會_嗶哩嗶哩 (゜-゜)つロ 乾杯~-bilibili mongodb安裝: docke

原创 解決知乎倒立驗證碼識別

衆所周知,知乎對反爬的措施位列全網第一梯隊。我在爬取知乎的過程中也是遇到了倒立驗證碼的問題。 解決的辦法是開源github項目:zheye。 首先安裝項目依賴包。 Keras==2.0.1 Pillow==3.4.2 #jupy

原创 mac禁止chrome更新

終端輸入: cd /Library/Google/GoogleSoftwareUpdate sudo rm -rf GoogleSoftwareUpdate.bundle

原创 問題解決:raise ValueError('Missing scheme in request url: %s' % self._url) ValueError: Missing schem

今天使用scrapy爬取圖片時,發現這個錯誤: raise ValueError('Missing scheme in request url: %s' % self._url) ValueError: Missing schem

原创 js值類型與引用類型

一個經典的問題:以下兩個輸出結果爲何不一致? // 情況1:值類型 let a = 100 let b = a b = 20 console.log(a) // 100 // 情

原创 問題解決:from . import _mysql ImportError: Library not loaded: @rpath/libmysqlclient.21.dylib

今天用python連接mysql時報錯: File "/Users/zhbink/Documents/GitHub/Scrapy/ArticleSpider/ArticleSpider/pipelines.py", line

原创 PAT甲級 1144 The Missing Number (20 分)

Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Speci

原创 PAT甲級 1146 Topological Order (25 分) 【拓撲排序】

This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order ob

原创 流利閱讀 2019.12.31 The bittersweet charms of tiramisu

流利閱讀個人筆記分享: GitHub - zhbink/LiuLiYueDu: 流利閱讀pdf筆記彙總,此爲@zhbink個人學習筆記,請勿用於商業或其他用途。 本文內容全部來源於流利閱讀。流利閱讀對每期內容均有很好的文章講解,

原创 流利閱讀 2020.01.01~2020.01.10

博客僅爲原文,查看筆記請移步: GitHub - zhbink/LiuLiYueDu: 流利閱讀pdf筆記彙總,此爲@zhbink個人學習筆記,請勿用於商業或其他用途。 本文內容全部來源於流利閱讀。流利閱讀對每期內容均有很好的文