Life is short, you need Python

摘要: If you cannot sure the method of a datatype, then you can use dir function to list all methods of this datatype代码Note: 1)format: dir(variable), it is included by()2)the returned list contains the name... 阅读全文
posted @ 2010-08-23 11:13 runfox545 阅读(555) 评论(0) 推荐(0) 编辑
摘要: Intel,60%溢价,你又造就了一批千万甚至亿万富翁!AMD,你准备如何还击呢!!!----------------------------------------------------------------------------------------------2010年8月20日,全球最大晶片制造商英特尔计划以76.8亿美元收购全球第二大防毒软件公司迈克菲 (McAfee)。 英特尔表示,计划以每股48美元现金,收购迈克菲全部普通股,收购价较上个交易日收市价有60%溢价。英特尔指出,双方董事会已经批准有关交易进行。 英特尔又指出,收购完成后,迈克菲将以全资附属公司继续营运,并直接 阅读全文
posted @ 2010-08-21 14:07 runfox545 阅读(269) 评论(0) 推荐(0) 编辑
摘要: [代码]Notes:1)String is transfered to a List by split method2)List can be joined a string by join method 阅读全文
posted @ 2010-08-20 10:33 runfox545 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 代码Notes:The keys method of a dictionary returns a list of all the keys. The list is not in the order in which the dictionary was defined (remember that elements in a dictionary are unordered), but it ... 阅读全文
posted @ 2010-08-20 10:12 runfox545 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 1. DefinitionA tuple is an immutable list. A tuple can not be changed in any way once it is createdNote:1)It is include by"()"2)Cannot be changed after it is defined3)No method(like remove,append,inde... 阅读全文
posted @ 2010-08-20 09:21 runfox545 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 卡农卡农Canon是一种曲式的名称,这种曲式的特征是间隔数音节不停重复同一段乐曲。一般的演奏法是以大提琴启奏,三把小提琴间隔八拍先后加入,小提琴全部拉奏完全相同旋律,前后也只有三段不同的旋律,每段更是仅有两小节的旋律供重复拉奏;大提琴的调子从头到尾只有两小节,重复达廿八次之多,可是听者却陶醉在这旋律之中,丝毫不会感到单调。I Believe众所周知,<<我的野蛮女友>>种背景音乐之一.琴声悠扬,音调舒缓!美女与野兽来自格林童话。故事中的王子被巫婆施了魔法而变成野兽的模样,只有他在玫瑰花凋谢之前,学会爱别人和被别人爱,才能打破巫婆的咒语!天空之城每一个音符都静静像我们诉说 阅读全文
posted @ 2010-08-19 16:45 runfox545 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 今天发现觉先博主发表的外企那点事,有些内容有关项目管理,很有参考价值,转载如下:转自:http://www.cnblogs.com/forfuture1978/archive/2010/08/04/1791660.html每年过年后的一段时间内,便是一年一度论功行赏的时候了。年终奖一般设置在年前,而加薪设置在年后,却是一种蛮不错的设计,从而年前大家皆大欢喜,一片祥和,年后又带来新的一年的希望,并激... 阅读全文
posted @ 2010-08-19 16:38 runfox545 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Modules are objects, and all modules have a built-in attribute __name__. A module's __name__ depends on how you're using the module. If you import the module, then __name__ is the module's filename, w... 阅读全文
posted @ 2010-08-19 15:12 runfox545 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Notes:Importing the Sys module makes all of its functions and attributes availableYou can add a new directory to Python's search path at runtime by appending the directory name to sys.path, and then P... 阅读全文
posted @ 2010-08-19 14:46 runfox545 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 4)Search5)delete代码>>> ListTest['Value1', 'Value2', 'two', 'Value3', 'Value4', 'Value21', 'Value22']>>> ListTest.remove('two')>>> ListTest['Value1', 'Value2', 'Value3', 'Valu... 阅读全文
posted @ 2010-08-19 11:13 runfox545 阅读(423) 评论(0) 推荐(0) 编辑
白月黑羽 Python教程 白月黑羽Python