聚合# 查询构造器也提供各式各样的聚合方法,如 count, max, min, avg 及 sum。 使用聚合方法# 但是对于复杂的情况(比如join 后的结果,其结果并不是个objet)。就不能直接使用上述的方法 解决方法: db::raw('') Raw Expressions# 有些时候您需 ...
分类:
数据库 时间:
2017-08-21 00:28:47
阅读次数:
286
Travel The country frog lives in has nn towns which are conveniently numbered by 1,2,…,n1,2,…,n. Among n(n?1)2n(n?1)2 pairs of towns, mm of them are c ...
分类:
其他好文 时间:
2017-08-18 23:52:37
阅读次数:
209
Once upon a time, there was a traveler. He plans to travel using stagecoaches (horse wagons). His starting point and destination are fixed, but he can ...
分类:
其他好文 时间:
2017-08-17 12:54:49
阅读次数:
166
1常用模块 1.1 xml xml是实现不同语言或程序之间进行数据交换的协议 xml的格式如下: <?xml version="1.0"?> <data> <country name="Liechtenstein"> <rank updated="yes">2</rank> <year>2008</ ...
分类:
编程语言 时间:
2017-08-16 23:13:01
阅读次数:
238
本章内容 属性方法 属性方法就是通过使用装饰器 @property , 将一个方法变成一个静态属性 , 于是我们就可以通过访问属性 , 来或得一个方法的返回值 在property中为我们实现了三种方法 , get , set , delete 换一种写法看看 实际应用 类方法 类方法是通过@clas ...
分类:
编程语言 时间:
2017-08-16 21:51:25
阅读次数:
243
1.OOBE out of box experience 2.ODAC on Device account creation 3.ASIN amazon standard identification number 4.DSN Device serial number //adb devices 5 ...
分类:
其他好文 时间:
2017-08-14 19:00:28
阅读次数:
268
一、xml模块 <?xml version="1.0"?> -<data> -<country name="Liechtenstein" a="1"> <rank updated="yes">2</rank> <year updated="yes" version="1.0">2010</year> ...
分类:
其他好文 时间:
2017-08-14 18:52:28
阅读次数:
152
There are N cities in our country, and M one-way roads connecting them. Now Little Tom wants to make several cyclic tours, which satisfy that, each cy ...
分类:
编程语言 时间:
2017-08-14 16:23:46
阅读次数:
180
常用模块shutilxmlconfigparserhashlibsuprocess面向对象的程序设计 常用模块 xml模块 1 <?xml version="1.0"?> 2 <data> 3 <country name="Liechtenstein"> 4 <rank updated="yes"> ...
分类:
编程语言 时间:
2017-08-14 10:10:44
阅读次数:
180
A cookie is a small piece of data sent by a website to your browser. It helps the website to remember information about your visit, like your country ...
分类:
其他好文 时间:
2017-08-13 20:45:46
阅读次数:
125