摘要:
来自知乎: 一般在服务器返回的数据上我们会做数据合法性检测,所以在api文档上需要注明字段的取值范围,然后客户端根据这个去做数据检测,缺段就直接走数据错误的流程,这个很大程度上避免了不少nullpointer。 合理使用 @NotNull以及@Nullable注解,不要过度依赖,因为经常会不对,需要 阅读全文
posted @ 2017-02-15 18:18
HaibaraAi
阅读(149)
评论(0)
推荐(0)
摘要:
1 n里有多少个1 include include using namespace std; int main() { int n=10; cin n; int f[10]; int x[10]; f[0] = 0; f[1] = 1; x[0] = 0; x[1] = 1; for (int i 阅读全文
posted @ 2017-02-15 00:19
HaibaraAi
阅读(87)
评论(0)
推荐(0)
浙公网安备 33010602011771号