Life is short, you need Python

摘要: Here are some of the most common string methods. A method is like a function, but it runs "on" an object. If the variable s is a string, then the code s.lower() runs the lower() method on that string object and returns the result (this idea of a method running on an object is one of the ba 阅读全文
posted @ 2011-04-22 14:08 runfox545 阅读(521) 评论(0) 推荐(0) 编辑
摘要: Python is packaged with many standard modules which are bundled with a standard installation of the python interpreter, so you don't have do anything extra to use them. Commonly used standard python modules include:sys -- access to exit(), argv, stdin, stdout, ... re -- regular expressions os -- 阅读全文
posted @ 2011-04-22 11:17 runfox545 阅读(193) 评论(0) 推荐(0) 编辑
白月黑羽 Python教程 白月黑羽Python