浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 610 611 612 613 614 615 616 617 618 ··· 630 下一页

2010年3月16日

摘要: Python代码 defrun(name,age,sex):print'name:',name,'age:',age,'sex:',sex>>>run('xiaoming',name='xiaoming',sex='boy')SyntaxError:non-keywordargafterkeywordarg 函数调用的时候,如果第一个参数使用了关键字绑定,后面的参数也必须使用关键... 阅读全文
posted @ 2010-03-16 11:38 lexus 阅读(230) 评论(0) 推荐(0) 编辑

摘要: 后来我下了一个深度deepin的精简版xp装了一下就搞定了,virtualbox有一个混合模式,一开始我以为是parrenalls的特有的,没想到是众人皆知的秘密,虚拟技术发展真是快啊 阅读全文
posted @ 2010-03-16 11:34 lexus 阅读(474) 评论(0) 推荐(0) 编辑

摘要: http://www.verycd.com/topics/2805662/ 阅读全文
posted @ 2010-03-16 09:28 lexus 阅读(140) 评论(0) 推荐(0) 编辑

摘要: http://www.verycd.com/topics/2805808/我没用过 阅读全文
posted @ 2010-03-16 09:24 lexus 阅读(222) 评论(0) 推荐(0) 编辑

2010年3月15日

摘要: http://www.meijumi.com/article.asp?id=4932 阅读全文
posted @ 2010-03-15 21:01 lexus 阅读(166) 评论(0) 推荐(0) 编辑

摘要: http://www.infoq.com/cn/news/2010/03/isolated-work-vs-collaboration我反对文中的观点,结合自身的角度,有时间写 阅读全文
posted @ 2010-03-15 20:38 lexus 阅读(165) 评论(0) 推荐(0) 编辑

摘要: http://code.google.com/p/templatemaker/还不错的项目 阅读全文
posted @ 2010-03-15 20:22 lexus 阅读(174) 评论(0) 推荐(0) 编辑

摘要: http://www.ubuntu-inside.me/2009/02/how-to-open-7zip-files-under.html原装的打电话问了要350,已经过了保修期了,之前换过一次,这回又坏了,于在淘宝上找到一个店家,正好下午去perl聚会,取道中关村,因此50块钱,自己动手换了一个,风扇可能是二手的,成色 不新,不过 还算好用,比较惊人的是,我在换风扇的过程中没有关机,原因是忘了关... 阅读全文
posted @ 2010-03-15 19:50 lexus 阅读(218) 评论(0) 推荐(0) 编辑

2010年3月13日

摘要: 这个做法,我没有找到,同事无意间找到的,<resource uri="file://~beitmemcached.xml" /> 阅读全文
posted @ 2010-03-13 10:51 lexus 阅读(270) 评论(0) 推荐(0) 编辑

摘要: 国际邮箱好像都没问题,类似gmail,就是国内的邮箱有一些问题,比如 mail.139.com因此还是得进行一下处理参看这个链接 http://suzhouclark.itpub.net/post/7184/484998主要是如下的一段msgText = MIMEText(plainText, 'plain','gb2312') msgHtml = MIMEText(htmlText, 'html... 阅读全文
posted @ 2010-03-13 10:49 lexus 阅读(424) 评论(0) 推荐(0) 编辑

2010年3月11日

摘要: def 你好(): pass 阅读全文
posted @ 2010-03-11 17:53 lexus 阅读(246) 评论(0) 推荐(0) 编辑

摘要: >>> class Template(): def ___haha(): pass >>> t=Template()>>> dir(t)['_Template___haha', '__doc__', '__myodule__']当方法以__开头后,会认为它是一个私有的方法,外部不能调用,其实是因为python帮我们改名了,如上所式的___ha... 阅读全文
posted @ 2010-03-11 16:25 lexus 阅读(1125) 评论(0) 推荐(0) 编辑

2010年3月10日

摘要: easy_installsudo apt-get install python-setuptools或是http://blog.163.com/htc3000@126/blog/static/131770222200911111238890/gccsudo apt-get installl build-essentiallxmlsudo apt-get install python-lxmlpyq... 阅读全文
posted @ 2010-03-10 20:44 lexus 阅读(225) 评论(0) 推荐(0) 编辑

摘要: 我花了10分钟在virtualbox中装了一个xp,我发现xp的成功,很大的程度在于这些功臣门的带动,现在win7虽然炫,但我觉得一键ghost省了我好多事,装机就得用一键ghost,一个字省事 阅读全文
posted @ 2010-03-10 16:52 lexus 阅读(204) 评论(0) 推荐(0) 编辑

摘要: http://code.google.com/p/iptux/wiki/installiptuxsudo apt-get install iptux 阅读全文
posted @ 2010-03-10 14:11 lexus 阅读(182) 评论(0) 推荐(0) 编辑

摘要: easy_installsudo apt-get python-setuptoolsgccsudo apt-get installl build-enssentialpyquerysudo easy_install pyqueryeventletsudo easy_install eventlet 阅读全文
posted @ 2010-03-10 09:24 lexus 阅读(220) 评论(0) 推荐(0) 编辑

摘要: http://pypi.python.org/pypi/setuptools#windowseasy_install你可以认为是ruby中的gem,mac中的portsubuntu中的apt-get不过它是针对python的 阅读全文
posted @ 2010-03-10 08:20 lexus 阅读(269) 评论(0) 推荐(0) 编辑

2010年3月9日

摘要: def haha(li=None): a=li or []dict(a=1,b=2,c=3) 阅读全文
posted @ 2010-03-09 09:17 lexus 阅读(114) 评论(0) 推荐(0) 编辑

摘要: 如下一个场景def a(): count=0 def _a(): global count count+=1 _a() _a() return _count如上的一个函数,在实际执行时是报错的,因为没有global的变量 count,我想问的是像这样一个场景,用怎么样的实现来做好一些呢?是否有在函数内部保留状态的机制,yield是有,不过这里好像是用不到,请达人请点哈。我自己试验了下是采用这样的方... 阅读全文
posted @ 2010-03-09 09:16 lexus 阅读(184) 评论(0) 推荐(0) 编辑

2010年3月5日

摘要: KISS原則是英語KeepItSimple,Stupid的首字母縮略字。KISS原則是指在設計當中應當注重簡約的原則。同時這原則亦有應用在商業書信[1]、設計電腦軟件、動畫、工程上。原文當中有很多其他版本,包括:"KeepItSimple&Stupid"(在西歐文學中最常使用)、"KeepItSweet&Simple"、"KeepItShort&Simple"、"Keepi... 阅读全文
posted @ 2010-03-05 11:20 lexus 阅读(180) 评论(0) 推荐(0) 编辑

上一页 1 ··· 610 611 612 613 614 615 616 617 618 ··· 630 下一页