浩浩 浩浩
4年前
Retrofit 支持suspend函数源码分析
Retrofit2.6.0之后支持接口suspend函数配合协程使用,举个例子:ApiServicejavainterfaceLoginApiService:BaseService{@GET("/wxarticle/chapters/json")suspendfungetChapters():BaseResp
Stella981 Stella981
3年前
PHP返回Json数据函数封装
/返回Json数据@paramint$code@paramstring$message@paramarray$data@returnstring/publicfunctionretJson($code,$message'
Stella981 Stella981
3年前
Serverless 实战 —— 函数计算 + Typescript 实践
前言首先介绍下在本文出现的几个比较重要的概念:函数计算(FunctionCompute)(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.aliyun.com%2Fproduct%2Ffc%3Fspm%3D5176.10695662.1112509.1.70
Stella981 Stella981
3年前
D3.js area函数
!(http://static.oschina.net/uploads/space/2015/0402/110259_Cfoo_861926.png)var area  d3.svg.area().interpolate("monotone").x(function(d) { return x(d.date); }).y0(260).y1(
Stella981 Stella981
3年前
C++之private虚函数
一般我们说虚函数,它的访问级别都是public的,用类对象可以直接调用,这样就可以实现运行时的类型绑定,那如果我们将虚函数私有化会出现什么情况呢?是不是很蛋疼的想法。include<iostreamclassDerived;classBase{public:voiddoF
Wesley13 Wesley13
3年前
Oracle中Decode()函数使用技巧
decode(条件,值1,翻译值1,值2,翻译值2,...值n,翻译值n,缺省值)该函数的含义如下:IF条件值1THEN    RETURN(翻译值1)ELSIF条件值2THEN    RETURN(翻译值2)    ......ELSIF条件值nTHEN    RETURN(翻
Stella981 Stella981
3年前
PostgreSQL 动态更新 C 语言函数
PostgreSQL对于C语言编写的函数(包括其他与C语言兼容的语言,如C、Rust等),是动态装载的,用CREATEFUNCTION创建完函数后,并不会立即装载,而是有连接建立之后,客户端第一次调用时才会进行装载,而且是装入到会话进程的内存里面去了。这时候,就算我们把.so文件删除,如果会话之前已调过一次函数的话,客户端还是
Stella981 Stella981
3年前
Python对象相关内置函数
针对一个对象,通过以下几个函数,可以获取到该对象的一些信息。1、type(),返回某个值的类型type(123)<class'int'type('str')<class'str'type(None)<type(None)'NoneType'使用就是括号
Stella981 Stella981
3年前
Scala 函数 方法 一样
2者除了定义的形式不一定,功能可以说是一致的,见如下代码packagescalapackage.funcwithmethod/CreatedbyGermmyon2018/4/29./classTestFuncAndMethod{}
Wesley13 Wesley13
3年前
Java是否有析构函数?
问题:_IsthereadestructorforJava?_Java是否有析构函数?_Idon'tseemtobeabletofindanydocumentationonthis._我似乎无法在此找到任何文档。_Ifthereisn't,howcanIachievethes