This is a note forhttps://class.coursera.org/interactivepython-005In week two, I have learned:1.event-drvien programing4 event types:Input: button, te...
分类:
编程语言 时间:
2014-09-30 23:13:50
阅读次数:
210
1、const?char*,?char?const*,?char*const的区别问题: Bjarne在他的The?C++?Programming?Language里面给出过一个助记的方法:? 把一个声明从右向左读 char?*?const?cp;????//?(?*?读成?point...
分类:
其他好文 时间:
2014-09-29 22:39:51
阅读次数:
224
ConductingInterviewis not cheap and costs both time and money to a company. It take a lot of time to find the right candidate for a job from 100s resu...
分类:
其他好文 时间:
2014-09-29 12:25:37
阅读次数:
294
Hallmarks of dynamic programming#1Optimal substructure: an optimal solution to a problem (instance) contains optimal solutions to subproblems.e.g. if ...
分类:
其他好文 时间:
2014-09-28 23:53:26
阅读次数:
190
In classical object-oriented programming languages, a constructor is a special method used to initialize a newly created object once memory has been a...
分类:
编程语言 时间:
2014-09-28 22:56:05
阅读次数:
213
using System;public static class GreaterTest{ public static of( left, right) {) .MakeGenericType(type).IsAssignableFrom(intf) || ...
分类:
其他好文 时间:
2014-09-28 20:31:35
阅读次数:
264
今天晚上继续读 《Masterminds of Programming》,忍不住又翻译了半章关于 Forth 之父的访谈。我以前读过几篇更早时期关于他的访谈,部分了解他的观点。小时候还特别迷 Forth 。这位神叨叨的老头很有意思。没看过原来的译本,只是自己按自己的理解翻了第 4 章 Forth 的...
分类:
其他好文 时间:
2014-09-28 18:31:45
阅读次数:
329
首先twisted是在python结构下的一个事件驱动的网络框架。你可以在此基础上做出遵循各种协议的client--server结构的软件应用.
刚刚读了第一大章 An Intrduction to twisted主要有如下体会:
1) 所谓的事件驱动是指程序的运行是由外在的因素决定的,比如GUI程序依赖的是用户的鼠标操作,网络程序依赖的是client的送回来的消息,在twisted中...
分类:
Web程序 时间:
2014-09-28 17:45:04
阅读次数:
205
问题描述:
Programming Assignment 3: Pattern Recognition
Write a program to recognize line patterns in a given set of points.
Computer vision involves analyzing patterns in visual images and recon...
分类:
其他好文 时间:
2014-09-28 17:10:03
阅读次数:
293
我们在写一些Model的时候,经常会重写ToString,为了在控制台中进行打印或者更好的单元测试。但是,如果Model的字段非常多的时候,如此简单的重复劳动经常会变成一件令人头痛的事情,因为大家都不想重复劳动,或者这种事情应该交给初级程序员或者毕业生去做。看如下:public class Cust...
分类:
其他好文 时间:
2014-09-28 12:48:02
阅读次数:
228