如何学习Python
1、Python历史Python的创始人为荷兰人吉多·范罗苏姆(Guido van Rossum)。1989年的圣诞节期间,吉多·范罗苏姆为了在阿姆斯特丹打发时间,决心开发一个新的脚本解释程序,作为 ABC 语言的一种继承。之所以选中Python作为程序的名字,是因为他是 BBC 电视剧——蒙提·派森的飞行马戏团(Monty Python's Flying Circus)的爱好者。

3、简单的数学运算整数相加,得到整数:In[1]:2 + 2Out[1]:4浮点数相加,得到浮点数:In[2]:2.0 + 2.5Out[2]:4.5整数和浮点数相加,得到浮点数:In[3]:2 + 2.5Out[3]:4.5

5、s = """helloworld"""print shello worldIn[8]:s = '''helloworld'''print shello world字符串的加法:In[9]:s = "hello" + " world"sOut[9]:'hello world'字符串索引:
