随笔分类 - AA仓颉编程
摘要:接口定义 一个简单的接口定义如下: interface I { // 'open' modifier is optional. func f(): Unit } 接口使用关键字 interface 声明,其后是接口的标识符 I 和接口的成员。接口成员可被 open 修饰符修饰,并且 open 修饰符
阅读全文
摘要:import serialization.serialization.* import std.math.* import encoding.json.* /* 通过实现 Serializable 接口,来实现对自定义类型的序列化和反序列化功能 */ class Abc <: Serializabl
阅读全文
摘要:仓颉开发一个webapi接口 from net import http.ServerBuilder,http.FuncHandler main(){ let server = ServerBuilder().addr("127.8.8.1").port(8888).build()server.dis
阅读全文
摘要:https://www.bilibili.com/video/BV1AE421A7uH?p=30
阅读全文
摘要:对不可变变量赋值,就会报错 [31merror[0m: cannot assign to immutable value [36m==>[0m a.cj:8:20: [36m| [0m[36m8[0m [36m| [0m case 77 => a = 'a77'[0m [36
阅读全文
摘要:参考:https://txwtech.blog.csdn.net/article/details/140757790 [31merror[0m: non-exhaustive patterns [36m==>[0m a.cj:7:14: [36m| [0m[36m7[0m [36m
阅读全文
摘要:https://developer.huawei.com/consumer/cn/doc/cangjie-guides-V5/identifier-V5 https://developer.huawei.com/consumer/cn/training/course/slightMooc/C1017
阅读全文