Swaroop C H is 27 years of age. He is currently a Product Leader at Infibeam, one of the largest ecommerce companies in India. He has previously worked at Yahoo!, Adobe and his own startup.
AI导读
核心看点
专为零基础设计的Python入门教程,内容短小精悍。
通过简洁实例讲解语法,边读边练,快速上手编程。
涵盖基础语法、数据结构及面向对象等核心概念。
读者共识
公认的最佳Python入门书之一,简洁清晰易懂。
阅读门槛低,两天即可读完并尝试编写简单程序。
作为第一本编程书体验极佳,但进阶需补充其他资料。
精彩摘录
"Python的for循环与C#中的foreach循环十分类似。Java程序员会注意到它与Java 1.5中的for (int i : IntArray)相似。 在C/C++中,如果你想要写for (int i = 0; i < 5; i++) ,那么用Python,你写成for i in range(0,5)。"
"Important: Only those parameters which are at the end of the parameter list can be given default argument values i.e. you cannot have a parameter with a default argument value before a parameter without a default argument value in the order of parameters declared in the function parameter list. This"
"If you want to have keyword-only arguments but have no need for a starred parameter, then simply use an empty star without using any name such as def total(initial=5, *,vegetables)."
"Classes and objects are the two main aspects of object oriented programming. A class creates a new type where objects are instances of the class. An analogy is that you can have variables of type int which translates to saying that variables that store integers are variables which are instances (obj"
"Homework exercise: Checking whether a text is a palindrome should also ignore punctuation, spaces and case.For example, "Rise to vote, sir." is also a palindrome but our current program doesn't say it is. Can you improve the above program to recognize this palindrome?"
"Use help() to learn more about using help itself!"