码迷,mamicode.com
首页 >  
搜索关键字:objects    ( 3239个结果
[leetcode]Sort Colors
Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the or...
分类:其他好文   时间:2014-08-12 00:09:03    阅读次数:154
近期Linq To Objects总结
Linq To Objects是基于C#3.0的扩展方法特性和更复杂的类型参数推断特性。 扩展方法能像目标类型的实例方法一样被调用,而且也能像实例方法一样被链起来,而C#3.0中的类型推断允许基于一个类型参数推断结果来推断另外一个类型参数,如果没有这两个特性,那么linq to objects...
分类:其他好文   时间:2014-08-11 17:08:32    阅读次数:137
django学习笔记之models
djangmodels1.创建model fromdjango.dbimportmodels classMyObject(models.Model): attribute1=models.CharField(max_length=50)2.创建记录 2.1p=MyObject(attribute=xxxx) p.save() 2.2p=MyObject.objects.create(attribue=xxx)3.更新记录 p=MyObject.objects.all(attribute..
分类:其他好文   时间:2014-08-11 10:17:52    阅读次数:266
为什么一个object_id在dba_objects中为什么查不到记录?
SQL> drop table test purge;SQL> create table test (id int,comments CLOB);SQL> select INDEX_NAME, INDEX_TYPE,TABLE_OWNER ,TABLE_NAME from user_indexes ...
分类:数据库   时间:2014-08-10 21:14:10    阅读次数:306
xsl -fo 了解
XSL-FO是用于格式化XML数据的语言,全称为Extensible Stylesheet Language Formatting Objects(格式化对象的可扩展样式表语言),是W3C参考标准,现在通常叫做XSL。什么是 XSL-FOXSL-FO 是用于格式化 XML 数据的语言XSL-FO 指...
分类:其他好文   时间:2014-08-10 21:08:50    阅读次数:275
Json.NET - Documentation Creating JSON
Setting values and creating objects and arrays one at a time gives you total control but it is more verbose than other options. Creating JSON Copy imageCopy ?1JArray array = new JArray(); ?2JVal...
分类:Web程序   时间:2014-08-10 19:01:30    阅读次数:284
P162
#include #include main() { struct objects{ char name[20]; int size; char color[10]; float weight; float height; }; struct objects obj1; struct objects *p; p=&obj1; strcpy(obj1.nam...
分类:其他好文   时间:2014-08-09 11:49:17    阅读次数:277
PowerDesigner使用时需要注意的几个问题
一,新建模型时要注意选择DBMS类型 二,给表字段加注释,点击图标,勾选comment 三,指定建表时使用的编码和数据库引擎 工具栏-》database-》edit current DBMS 然后,选中:MYSQL50::Script\Objects\Table\Optio...
分类:其他好文   时间:2014-08-08 16:40:09    阅读次数:354
django model filter 条件过滤,及多表连接查询、反向查询,某字段的distinct
1.多表连接查询:当我知道这点的时候顿时觉得django太NX了。class A(models.Model):name = models.CharField(u'名称')class B(models.Model):aa = models.ForeignKey(A)B.objects.filter(a...
分类:其他好文   时间:2014-08-08 12:02:05    阅读次数:231
django book学习问题记录
——————————————————————————————————位置:第五章《模型》问题描述:>>> p1 = Publisher.objects.create(name='Apress',... address='2855 Telegraph Avenue',... city=...
分类:其他好文   时间:2014-08-06 22:49:42    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!