8000 实现区块链 · PythonDemoOrg/PythonBaseSample@1c30dc9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c30dc9

Browse files
committed
实现区块链
1 parent 89b18b6 commit 1c30dc9

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

python3_post/block_chain.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

22

3-
## 参考资料
3+
## 参考资料
44
[用Python从零开始创建区块链](https://github.com/PythonDemoOrg/BlockChain)
5+

python3_samples/auto_apk_release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def replaceText(f_path, text1, text2):
6464
for i in range(len(appNames)):
6565
if i != 0:
6666
# 替换Config配置文件下的代码内容
67-
replaceText(r'/Users/smartzheng/AndroidStudioProjects/MyApplication/app/src/main/java/com/smartzheng/Config.java',replaceText[i - 1],replaceText[i])
67+
replaceText(r'/Users/smartzheng/AndroidStudioProjects/MyApplication/app/src/main/java/com/smartzheng/Config.java',replaceText[i-1],replaceText[i])
6868
#替换app名字
69-
replaceText(r'/Users/smartzheng/AndroidStudioProjects/MyApplication/app/src/main/res/values/strings.xml', appNames[i - 1],appNames[i])
69+
replaceText(r'/Users/smartzheng/AndroidStudioProjects/MyApplication/app/src/main/res/values/strings.xml', appNames[i-1],appNames[i])
7070
#替換applicationId,即替换包名
7171
replaceText(r'/Users/smartzheng/AndroidStudioProjects/MyApplication/app/build.gradle',appIds[i-1],appIds[i])
7272
#替换输出的路径

python3_samples/block_chain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import requests
99
from flask import Flask, jsonify, request
101 8000 0

11-
class Blockchain:
11+
class BlockChain:
1212
def __init__(self):
1313
self.current_transactions = []
1414
self.chain = []
@@ -173,8 +173,8 @@ def valid_proof(last_proof: int, proof: int) -> bool:
173173
# Generate a globally unique address for this node
174174
node_identifier = str(uuid4()).replace('-', '')
175175

176-
# Instantiate the Blockchain
177-
blockchain = Blockchain()
176+
# Instantiate the BlockChain
177+
blockchain = BlockChain()
178178

179179

180180
@app.route('/mine', methods=['GET'])

todo/todo.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11

22
## TODO_LIST
33
[用python挖一挖知乎上宅男们最喜欢的1000个妹子](http://baijiahao.baidu.com/s?id=1600642958289158212&wfr=spider&for=pc)
4-
爬虫scrapy
5-
存储redis&mongo
6-
数据清洗python
7-
可视化echarts
8-
图片merge:PIL

0 commit comments

Comments
 (0)
0