码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
UML的基础元件之架构元件(三)
Structural Things An active class is a class whose objects own one or more processes or threads and therefore can initiate control activity. An active class is just like a class except that it...
分类:其他好文   时间:2014-06-17 22:44:27    阅读次数:310
UML的基础元件之行为元件
Behavioral things are the dynamic parts of UML models. These are the verbs of a model, representing behavior over time and space. In all, there are three primary kinds of behavioral things.   行...
分类:其他好文   时间:2014-06-17 21:47:37    阅读次数:315
UML的基本图(二)
?? Both sequence diagrams and communication diagrams are kinds of interaction diagrams. An interaction diagram shows an interaction, consisting of a set of objects or roles, including the messages ...
分类:其他好文   时间:2014-06-17 19:15:04    阅读次数:186
PostgreSQL 给数组排序
对数组内部进行排序的PLSQL函数。...
分类:数据库   时间:2014-06-17 19:07:47    阅读次数:301
webqq 获得好友列表hash算法 获得最新hash的方法
webqq获得好友列表的hash算法,大约每个月中旬会变动一次。知道怎么获得他就可以了。 js文件路径 http://web.qstatic.com/webqqpic/pubapps/0/50/eqq.all.js 加密算法为 P=function(b,i),有时候是 P=function(b,j) 直接打开这个文件后搜索P=function,有两个参数的就是。 把函数体拷贝下来后百度 js格式化工具,把内容放进去,格式化一下。...
分类:Web程序   时间:2014-06-17 19:05:37    阅读次数:267
linux bash shell学习笔记
Bash 开头#!/bin/bash。echo 语句屏蔽 “ ” 若使用则 \” \” 。 即使文件没有执行权限,仍然可以通过bashhello.sh 或者 sh hello.sh来执行文件。 标准输出写入>>文件中,标准错误输出默认为屏幕。标准错误输出为2>>。错误和输出都写入文件:1>>log 2>>err。两者都写入同一个文件:>&all_result,> ...
分类:系统相关   时间:2014-06-17 16:29:35    阅读次数:359
python轻量级ORM---peewee
peewee是一个轻量级的ORM。用的是大名鼎鼎的sqlalchemy内核,采用纯python编写,显得十分轻便。为了后续方便查看,在这里简单记录下~~ peewee不仅轻量级,还提供了多种数据库的访问,如SqliteDatabase(file or memory)、MYSQLDatabase、PostgresqlDatabase; 接下来就从API上路吧~~~ 1. class...
分类:编程语言   时间:2014-06-17 16:21:09    阅读次数:926
一入python深似海--浅拷贝与深拷贝
python中有一个模块copy,deepcopy函数用于深拷贝,copy函数用于浅拷贝。 引用 #import copy a=[1,2,3,4,[1,2]] b=a a print id(a) b print id(b) 我们可以发现,id(a)=id(b),即b是a的引用。 浅拷贝 浅拷贝由copy模块中的copy()函数实现,简单地说,copy.copy 浅拷贝 只拷贝父对...
分类:编程语言   时间:2014-06-17 16:17:09    阅读次数:309
python抓取新浪微博评论并分析
用Python实现模拟自动登录、新浪微博评论的抓取和分析。...
分类:编程语言   时间:2014-06-17 16:12:00    阅读次数:397
状态压缩动态规划 -- 旅行商问题
旅行商问题: N个点(N 并且路径上边的权值和最小(或者最大),或者求一条具有这样性质的回路。 状态压缩: 将二进制表示十进制数N的点集,比如: 10 = 00001010 代表第1和3个点已经路过 18 = 00010010 代表第1和4个点已经路过 一个整数就是一个点集, dp_arr[i][j]代表经过点集i中,当前终点为j,且路径最短的值,若该状态不存在就是...
分类:其他好文   时间:2014-06-17 16:05:30    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!