出错原因: 用户表是Django中核心的表,当这个表类字段中有一个这样的函数 在Django用户表设计时候有个字段容易犯这个失误,虽然表字段约束没错 也就是说这个字段可以为空,也就是说用 __str__ 函数返回时候,为空,什么都么有,报类型错误 那,如何解决? 在使用 __str__返回函数时候, ...
分类:
Web程序 时间:
2017-11-08 17:49:08
阅读次数:
244
match pmatch intersect %in% setdiff match package:base R Documentation Value Matching Description: 'match' returns a vector of the positions of (first ...
分类:
其他好文 时间:
2017-11-08 11:47:46
阅读次数:
283
A domino is a flat, thumbsized tile, the face of which is divided into two squares, each left blank or bearing from one to six dots. There is a row of ...
分类:
其他好文 时间:
2017-10-16 21:43:04
阅读次数:
217
一、主语+不及物动词(S+V) [例句]1. The man cooks. 男人做饭。 2. The sun is shining brightly. 太阳在明亮地照耀着。 3. We all breathe, eat, and drink. 我们呼吸、吃和喝。 4. They talked for ...
分类:
其他好文 时间:
2017-10-16 09:51:03
阅读次数:
181
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:
其他好文 时间:
2017-10-14 21:54:45
阅读次数:
113
今天正式学习STM8,用的是风驰STM8S208R开发板。 在编译例程遇到了如下这样的问题。 “ #error clnk debug\stm8s_demo.lkf:47 can't open file crtsi.sm8#error clnk debug\stm8s_demo.lkf:65 can' ...
分类:
其他好文 时间:
2017-10-10 19:16:31
阅读次数:
174
源码: 1 /* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may no ...
分类:
其他好文 时间:
2017-10-04 21:35:57
阅读次数:
381
异常信息 表面上看异常信息是 mybatis 查询的结果有两条数据,但是返回的参数用一个对象接受的,于是打断点调式 at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77) ...
分类:
Web程序 时间:
2017-10-03 22:19:47
阅读次数:
650
前言 本节我们来介绍一款强大的库Polly,Polly是一种.NET弹性和瞬态故障处理库,允许我们以非常顺畅和线程安全的方式来执诸如行重试,断路,超时,故障恢复等策略。 Polly针对对.NET 4.0,.NET 4.5和.NET Standard 1.1以及.NET Core实现,该项目作者现已成 ...
分类:
Web程序 时间:
2017-09-27 10:20:11
阅读次数:
221
在学习mybatis的延迟加载时,对 lazyLoadingEnabled 和 aggressiveLazyLoading 的区别并不理解,特别是对查询的条件不同时,执行的查询语句也不一样,所以还是测试总结一下 测试用例如下: 1.1 使用默认配置,不查询任何属性 1.2 使用默认配置,查询blog ...
分类:
其他好文 时间:
2017-09-22 18:58:08
阅读次数:
227