自然对数展开式
    
            
摘要:【自然对数展开式】 自然对数的底数e是由一个重要极限给出的。我们定义:当n趋于无限时, e是一个无限不循环小数,其值约等于2.718281828459…,它是一个超越数。 易证明:函数展开为x的幂级数(Maclaurin级数)是 特别地,当x=1时就得到了e的展开式 参考:...
        
阅读全文
摘要:【Go Concurrency】1、Agoroutineis a lightweight thread managed by the Go runtime. 2、Channels are a typed conduit through which you can send and receive ...
        
阅读全文
摘要:【Go Methods and Interfaces】1、Go does not have classes. However, you can define methods on struct types. Themethod receiverappears in its own argument...
        
阅读全文
摘要:【Go structs、slices、maps】1、定义时*在变量名后面,使用时*在变量名前面。 2、定义struct,type在前,struct关键字在后。 3、指针可以指定struct。 4、A struct literal denotes a newly allocated stru...
        
阅读全文
摘要:【Defer 声明的设计理念】 Adefer statementpushes a function call onto a list. The list of saved calls is executed after the surrounding function returns. Defer...
        
阅读全文
摘要:【Go Flow Control】1、for没有(),必须有{}。 2、for的前后表达式可以为空。 3、没有while,for即是while。 4、无穷循环。 5、if没有(),必须有{}。 6、if临时变量。 Likefor, theifstatement can start wit...
        
阅读全文
摘要:【Unity加载二进制数据】 The first step is to save your binary data file with the ".bytes" extension.unitywill treat this file as aTextAsset. As a TextAsset th...
        
阅读全文
摘要:【Go Packages、Variables、functions】1、定义包名。 2、引入Package。 3、定义导出的变量。首字母必须大写。 4、函数。Notice that the type comesafterthe variable name. 5、参数缩写。 6、函数可以返回任...
        
阅读全文
摘要:【C#泛型序列化困境】 问题的起因是这样,有一个需求,将JsonArray转化为List,JsonArray中的元素均是string,此string可被转化为int、float、或维持string。我的方案是扩展System.Collection.Generic.List,实现一个void Par...
        
阅读全文