最开始知道区块链是在17年初,当时因为项目压力不大,开始研究比特币源码。对于比特币中提到的Proof of Work,当时只是一眼带过,并没有详细查看过相关的代码。在最近的项目中,考虑到性能的要求,需要接入算力池来提高性能...[继续阅读]
海量资源,尽在掌握
最开始知道区块链是在17年初,当时因为项目压力不大,开始研究比特币源码。对于比特币中提到的Proof of Work,当时只是一眼带过,并没有详细查看过相关的代码。在最近的项目中,考虑到性能的要求,需要接入算力池来提高性能...[继续阅读]
/** *人民币转大写 * * @param $num 金额 */function numTrmb($num){ $d = array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"); $e = array('元', '拾', '佰', '仟', '万', '拾万', '佰万', '仟万',...[继续阅读]
#include <stdio.h>#include <stdlib.h> const int N=5;// 定义结构体类型struct student,并定义STU为其别名 typedef struct student {long no;char name[20];int score; }STU;// 函数声明 void input(STU s[], int n);int findMinlist(STU s[], STU t[], int n);void output(STU s[], int n)...[继续阅读]
aes加密npm地址:https://www.npmjs.com/package/crypto-jsaes加密git地址/下载: https://github.com/brix/crypto-js直接上代码:前台代码: /* * 加密 */ function encrypt(str, key) { key = CryptoJS.enc.Utf8.parse(key ? key : "1111111...[继续阅读]
引言朋友看罢我之前整理的《Akka Typed 官方文档之随手记》,一人用了诗歌《长城长》作为回赠,另一人则要求推出简化版本。于是抽空整理了几张思维导图,并且用了一些不太恰当的比喻,不知此番效果如何。Markdown语法默认不支...[继续阅读]
打开Python Shell,先输入import tensorflow as tf,然后可以执行以下命令。 Tensorflow中的常量创建方法:hello = tf.constant('Hello,world!', dtype=tf.string) 其中,'Hello,world!'是常量初始值;tf.string是常量类型,可以省略。常...[继续阅读]
从这一篇文章,你将要学到如何利用griddata进行三维空间插值;及其适用范围和进阶的逐步插值背景 最近在做一个项目,要为上海市13000+个普通住宅楼盘算基本价格,俗称基价,可以从第三方来的案例数据只能覆盖大约3000个楼盘,...[继续阅读]
...[继续阅读]
题目描述 Description给出一张n*n(n<=100)的国际象棋棋盘,其中被删除了一些点,问可以使用多少1*2的多米诺骨牌进行掩盖。输入描述 Input Description第一行为n,m(表示有m个删除的格子)第二行到m+1行为x,y,分别表示删除格子所在的...[继续阅读]
Two distinct techniques are used in data communications to transfer data. Each has its own advantages and disadvantages. They are the connection-oriented method and the connectionless method:Connection-oriented Requires a session connection (analogous to a phone call) be established before any...[继续阅读]