上一页 1 2 3 4 5 6 7 ··· 12 下一页

2021年2月9日

摘要: print(len(str)) 阅读全文
posted @ 2021-02-09 10:11 我尽量尽力而为 阅读(384) 评论(0) 推荐(0)
摘要: 在中文输入法下(无论中英输入模式),都有问题;切换到纯英文输入法后没有这个问题。 来源: https://www.cnblogs.com/xbit/p/10581396.html 阅读全文
posted @ 2021-02-09 09:12 我尽量尽力而为 阅读(134) 评论(0) 推荐(0)

2021年2月8日

摘要: 入口 if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: {:s} <coinbase message> <block reward address>".format(sys.argv[0])) sys.exit(1) sta 阅读全文
posted @ 2021-02-08 15:42 我尽量尽力而为 阅读(479) 评论(0) 推荐(0)
摘要: f = open("out.txt", "w") print(block_template, file = f) 阅读全文
posted @ 2021-02-08 15:28 我尽量尽力而为 阅读(301) 评论(0) 推荐(0)
摘要: 配置文件路径: /home/helen/.bitcoin/bitcoin.conf 配置文件内容: # always run a server, even with bitcoin-qt server=1 # enable SSL for RPC server #rpcssl=1 rpcallowi 阅读全文
posted @ 2021-02-08 15:26 我尽量尽力而为 阅读(302) 评论(1) 推荐(0)
摘要: Install pip on Kali Open a terminal and type the following commands to install pip for Python 3. sudo apt update sudo apt install python3-pip To see t 阅读全文
posted @ 2021-02-08 09:55 我尽量尽力而为 阅读(102) 评论(0) 推荐(0)

2021年2月7日

摘要: docker 查看所有容器 docker ps -a 一、启动一个已经停止的容器实例 docker start 容器ID或容器名 1. 先查看已经暂停的容器实例信息 2. 通过docker start 59ec 启动容器 3. 通过docker ps 查看当前启动的容器 具体操作如下图 docker 阅读全文
posted @ 2021-02-07 22:04 我尽量尽力而为 阅读(49) 评论(0) 推荐(0)
摘要: 搭建测试环境 https://www.cnblogs.com/weikunpeng/p/14381522.html 修改home/tester/bitcoin-testnet-box/1/bitcoin.conf 去掉远程访问的限制 rpcallowip=0.0.0.0/0 rpcallowip=: 阅读全文
posted @ 2021-02-07 21:52 我尽量尽力而为 阅读(116) 评论(0) 推荐(0)
摘要: 【现象】在编写Python时,当使用中文输出或注释时运行脚本,会提示错误信息:SyntaxError: Non-ASCII character '\xe5' in file ******* 【原因】 python的默认编码文件是用的ASCII码,而你的python文件中使用了中文等非英语字符。 【解 阅读全文
posted @ 2021-02-07 17:02 我尽量尽力而为 阅读(382) 评论(0) 推荐(0)
摘要: python 字符串常用操作方法 python 字符串操作常用操作,如字符串的替换、删除、截取、赋值、连接、比较、查找、分割等 1、去除空格 str.strip():删除字符串两边的指定字符,括号的写入指定字符,默认为空格 1 a=' hello '2 b=a.strip()3 print(b)输出 阅读全文
posted @ 2021-02-07 16:58 我尽量尽力而为 阅读(884) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 12 下一页

导航