摘要: 位移操作 二进制优势在于容易表示、抗干扰等,在表示模拟信号的时候也有优势。 运算符 &, |, ! &&, ||, !! >>, << :位移运算又分为逻辑位移、算术位移, 其中理解算数右移需要理解计算机内如何表示负数. 位移实验 移动的位数等于int的位数(4bytes * 8 = 32bis), 阅读全文
posted @ 2024-08-02 17:54 芜光 阅读(42) 评论(0) 推荐(0)
摘要: 文档: https://solidity-by-example.org/ 视频教程: https://www.youtube.com/watch?v=xv9OmztShIw&list=PLO5VPQH6OWdVQwpQfw9rZ67O6Pjfo6q-p 说明 本文内容payable, Sending 阅读全文
posted @ 2023-12-13 19:03 芜光 阅读(133) 评论(0) 推荐(0)
摘要: 文档: https://solidity-by-example.org/ 视频教程: https://www.youtube.com/watch?v=xv9OmztShIw&list=PLO5VPQH6OWdVQwpQfw9rZ67O6Pjfo6q-p 说明: 本文内容: Function Modi 阅读全文
posted @ 2023-12-10 15:16 芜光 阅读(88) 评论(0) 推荐(0)
摘要: 文档: https://solidity-by-example.org/ 视频教程: https://www.youtube.com/watch?v=xv9OmztShIw&list=PLO5VPQH6OWdVQwpQfw9rZ67O6Pjfo6q-p 说明: 本文内容: Enum, struct, 阅读全文
posted @ 2023-12-09 16:00 芜光 阅读(40) 评论(0) 推荐(0)
摘要: 文档: https://solidity-by-example.org/ 视频教程: https://www.youtube.com/watch?v=xv9OmztShIw&list=PLO5VPQH6OWdVQwpQfw9rZ67O6Pjfo6q-p 说明 看视频没注意有文档, 前面写了一篇好多废 阅读全文
posted @ 2023-12-06 14:59 芜光 阅读(58) 评论(0) 推荐(0)
摘要: https://www.youtube.com/watch?v=xv9OmztShIw&list=PLO5VPQH6OWdVQwpQfw9rZ67O6Pjfo6q-p helloworld // SPDX-License-Identifier: MIT // 如果没有上面的license就会出现黄色 阅读全文
posted @ 2023-12-05 20:20 芜光 阅读(58) 评论(0) 推荐(0)
摘要: https://www.youtube.com/watch?v=xv9OmztShIw&list=PLO5VPQH6OWdVQwpQfw9rZ67O6Pjfo6q-p helloworld和溢出问题 contract HelloWorld { /** * @dev Prints Hello Worl 阅读全文
posted @ 2023-12-05 13:12 芜光 阅读(128) 评论(0) 推荐(0)
摘要: 《精通以太坊————实现数字合约》这本书有点久了,而软件都在进步,所以摸索过后记录一下操作。 参考文献:https://github.com/inoutcode/ethereum_book/blob/master/第二章.asciidoc#ether_denominations https://re 阅读全文
posted @ 2023-12-03 15:57 芜光 阅读(70) 评论(0) 推荐(0)
摘要: 函数式(Functional)接口 只包含一个抽象方法的接口,称为函数式接口。 你可以通过Lambda表达式来创建该接口的对象。(若Lambda表达式抛出一个受检异常(即:非运行时异常),那么该异常需要在目标接口的抽象方法上进行声明 我们可以在一个接口上使用@Functionallnterface注 阅读全文
posted @ 2023-11-23 13:36 芜光 阅读(169) 评论(0) 推荐(0)
摘要: 学习Java8新特性lambda 阅读全文
posted @ 2023-11-21 20:19 芜光 阅读(122) 评论(0) 推荐(1)