原创 python學習------pythonic

pythonnic-python技巧交換兩個數順序同時判斷多個標誌位合併兩個列表列表逆序輸出 交換兩個數順序 a,b = b,a 同時判斷多個標誌位 a, b, c = 0, 1, 1 if 1 in (a, b, c):

原创 HTML5(2)--創建文檔

HTML5構建主題內容標識文章給內容分段 構建主題內容 標識文章 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name=

原创 python學習------matplotlib

matplotlib繪製折線圖figure設置座標軸刻度設置座標軸位置legendannotation標註繪製散點圖隨機漫步漸變隱藏座標軸起始位置和終點位置標記 繪製折線圖 import matplotlib.pyplot as

原创 區塊鏈技術與應用視頻筆記(5-)

區塊鏈技術與應用視頻筆記(5-)第5講 BTC-實現基於交易費用block例子Block header數據結構挖礦分叉和驗證驗證selfish mining基於賬戶(以太坊)第6講 BTC-網絡第8講 挖礦全節點和輕節點礦池、礦工

原创 TypeError: get() takes no keyword arguments

問題描述 《機器學習實戰》kNN算法中, for i in range(k): vote_label = distances_sorted_index[i] count[labels[vot

原创 python-使用API

python-使用APIGitHubAPI LimitAPI請求數據 GitHub API Limit https://api.github.com/rate_limit 返回結果 { "resources": {

原创 第10講 BTC-分叉

第10講 BTC-分叉 state fork(日常的分叉) forking attack deliberate fork(人爲攻擊) 升級軟件,修改協議 protocol fork hard fork硬分叉 soft for

原创 AttributeError: module 'matplotlib' has no attribute 'plot'

問題描述 AttributeError: module 'matplotlib' has no attribute 'plot'   原因 導入包時候是這樣寫的 import matplotlib as plt 應該改成 import

原创 Python文檔

3. Python的非正式介紹 數字 / 除法運算永遠返回浮點數類型 >>> print(1 / 1) 1.0 // 取整 % 取餘 ** 乘方 複數 使用後綴 j 或者 J 就可以表示虛數部分 Python中提供浮點數的完整支

原创 比特幣白皮書 源碼

比特幣白皮書 源碼 #include <math.h> #include <iostream> using namespace std; double AttackerSuccessProbability(double q, i

原创 python hashlib庫 hmac庫加密

hash 256的使用 import hashlib hash = hashlib.sha256() hash.update('asd'.encode()) print(hash.hexdigest()) hash = has

原创 matplotlib命令與格式:tick_params參數刻度線樣式設置

matplotlib命令與格式:tick_params參數刻度線樣式設置 原文:https://blog.csdn.net/helunqu2017/article/details/78736554 import csv impor

原创 《分佈式處理與計算》

分佈式處理與計算第1章 分佈式系統基礎知識1.1 分佈式系統概述1.1.2 分佈式系統的特徵1.1.3 分佈式系統的架構 第1章 分佈式系統基礎知識 1.1 分佈式系統概述 定義:分佈式系統是指由多個互相連接第處理資源組成的計算機

原创 nodejs筆記

nodejs筆記 準備 安裝node,npm,cnpm 安裝vscode,安裝插件Node Snippets   代碼 package.json 選擇目錄, 執行 npm init,就會自動生成package.json dependenc

原创 第11講 BTC-課堂問答

第11講 課堂問答 轉賬交易,比特幣不在線怎麼辦,加入他沒有加入到網絡中 不需要接受者在線 全節點收到一個轉賬交易,但它以前沒有“聽過” 比特幣產生時,是在本地的。產生交易後,其他節點才知道他的存在 私鑰丟失怎麼辦 丟了就沒了。