深入理解 IPFS - 分布式代理
今天我们利用 libp2p 创建一个简单的分布式 http 代理,具体 demo 参见官方 example:proxy.go 代理,同学们都很熟悉,不管是写爬虫,还是开发服务器…
Python 格式化字符串的几种方法
% 操作符(已经落伍了) 最原始的方式应该就是用 % 操作符了,% 操作符可以按位置替换格式化符的值: name = "earth" return "hello %s" % name hello…
把网页导出为图片的两种方案以及其适用场景
先列出解决方案给出结论,再开启啰嗦模式: html 网页通过 html2canvas 插件 ---> canvas 画布通过(toDataURL/toBlob)---> png/pdf/jpg ---> 通过a…
第 101 题:修改以下 print 函数,使之输出 0 到 99,或者 99 到 0
要求: 1、只能修改 setTimeout 到 Math.floor(Math.random() * 1000 的代码 2、不能修改 Math.floor(Math.random() * 1000 3、不能使用全局变量 func…
- 共 1 页
- 1