hello world!!!!!

写下自己的一些心得,写下自己问题的方式,写下程序之路的艰辛,希望能够有朝一日成为大牛。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

11 2010 档案

摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--classSampleCollection<T>{privateT[]arr=newT[100];publicTthis[inti]{get{returnarr[i];}set{arr[... 阅读全文

posted @ 2010-11-25 16:54 陈力 阅读(229) 评论(0) 推荐(0) 编辑

摘要:本来c#这种语法会有容易让人歧义,读者问一想到,他有什么作用,我用别的方式完也是可以替代的了的延续前面的文章, //MyDelegate d = new MyDelegate(p.InstanceMethod); //d(); //以委托为中介,进行转换,进而可以以把函数 作为函数的参数传递,有点拗口。但是有另外一种方式来,实现同样的情况,暂时只能给出这样的一个类比,进而说明问题的本身。 函数回调... 阅读全文

posted @ 2010-11-25 10:25 陈力 阅读(781) 评论(0) 推荐(0) 编辑

摘要:首先自己给委托下人地址 定义为 be defined as他其实是在求函数的入口地址,并且带标记,标记他是一个函数入口地址,举例说明如下,欢迎大家与我讨论。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--staticpublicvoidMain()... 阅读全文

posted @ 2010-11-25 09:57 陈力 阅读(471) 评论(1) 推荐(0) 编辑

摘要:一: vi hello.c 进入vi二: :whello.c 命名为filename,并且保存三: :wq 退出vi输入代码,如图所示最后通过命令自动帮助你缩进indent -st hello.c效果还不错,下一步我们试着让gcc环境我帮我解释一下,步骤还挺顺利的。出现了异常,请看哇一堆错误,我真够马虎的!!! 简单的代码,上面有严重的错误。#include<stdio.h>#incl... 阅读全文

posted @ 2010-11-19 17:18 陈力 阅读(376) 评论(2) 推荐(0) 编辑

摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->pythonimportMySQLdb>>>conn=MySQLdb.Connection('localhost','root','lee','proftpd')>>>cur=conn.cursor()cur.execute('select*fromstudent')>& 阅读全文

posted @ 2010-11-19 15:25 陈力 阅读(358) 评论(0) 推荐(0) 编辑

摘要:one: sudo apt-get install mysql-server mysql-client two: show database; use mysql ; describe db; //注意要用结尾结束语句的查询 以下就是建立数据库,与建立表了。create database leeuse leecreate table student (id int(3) auto _increm... 阅读全文

posted @ 2010-11-17 22:31 陈力 阅读(436) 评论(2) 推荐(1) 编辑

摘要:首先在myproject --(已经建立好的 pythonDjangoproject )建立一个模块 call : views.py代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--fromdjango.httpimportHttpResponse... 阅读全文

posted @ 2010-11-17 15:20 陈力 阅读(198) 评论(0) 推荐(0) 编辑

摘要:python manage.py shell 进入Django 项目环境。输入以下指令 [代码][代码]执行结果如下 下面以html的方式返回的代码如下:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<htmllang="en">&l... 阅读全文

posted @ 2010-11-17 11:29 陈力 阅读(276) 评论(0) 推荐(0) 编辑

摘要:先要安装python sudo install python (系统封装好了安装包)下载 后解压 tar xzvf Django-1.2.3.tar.gzcd Django-1.2.3sudo python setup.py install 安装框架Django接下来你进入到刚才所解压的django/bin目录下,运行 python django-admin.py startproject myproject -----相当于在vs 2008当中创建 create project一样,只是在这里一个命令行的形式。 他将会在你的bin目录下创建myproject目录 ls -all 以下有四个目 阅读全文

posted @ 2010-11-15 11:24 陈力 阅读(312) 评论(0) 推荐(1) 编辑

摘要:[代码]上面介召如何申明 私有成员方法 公开成员方法 静态方法 属性get 属性set 构造方法 及操作符重载类指针操作符self==(c#.this) 等常规面向对象的使用方式。 阅读全文

posted @ 2010-11-12 11:15 陈力 阅读(223) 评论(0) 推荐(0) 编辑

摘要:BinaryWriter BinaryReader 是一个二进制流管理对象,方便我们操作这些二进制数据,值得借鉴,相比我们自己去拼接与遍历要好的多。 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--staticvoidMain(){constint... 阅读全文

posted @ 2010-11-07 16:36 陈力 阅读(414) 评论(0) 推荐(0) 编辑

摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--IndentationError:unexpectedindent>>>deffib(n):..."""PrintaFibonacciseriesupton"""...a,b=0,... 阅读全文

posted @ 2010-11-04 17:34 陈力 阅读(430) 评论(2) 推荐(0) 编辑

摘要:我写这篇文章是在于自己热于发现一些解决问题的新方式,通常我在分析json格式的数据,喜欢用正则,但往往不够理想 可能正则水平也不到位吧。呵呵。首先拿到数据源代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicclassooojj{publicuserObjuser{get;set;}//对象publicstringis_retweet{get;set;}publicstringretweet_count{get;set;}publ 阅读全文

posted @ 2010-11-04 17:29 陈力 阅读(265) 评论(0) 推荐(0) 编辑

摘要:浅尝python语法,挺有意思的。////////////////////////////////////////////////////////////////>>> # Measure some strings:... a = ['cat', 'window', 'defenestrate']>>> for x in a:... print(x, len(x... 阅读全文

posted @ 2010-11-04 14:42 陈力 阅读(421) 评论(1) 推荐(0) 编辑

摘要:代码是最好的解释,请看代码,呵呵!代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--[代码]<selectid="mySelect"name="mySelect"onchange="ChangeCustomId(this)"><op... 阅读全文

posted @ 2010-11-01 10:12 陈力 阅读(371) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示