网站设置多少个关键词,网站后台密码忘了,网络的最基本定义,东阳网站建设dyfwzx开始学习Python啦#xff0c;希望能坚持下来#xff0c;在博客园里记录一下学习过程#xff0c;感谢博客园提供平台#xff01;Python发展史1989年圣诞节#xff0c;Guido开始写Python语言的编译器#xff0c;Python这个名字源于Guido所挚爱的电视剧 Monty Pythons Flyin…开始学习Python啦希望能坚持下来在博客园里记录一下学习过程感谢博客园提供平台Python发展史1989年圣诞节Guido开始写Python语言的编译器Python这个名字源于Guido所挚爱的电视剧 Monty Pythons Flying Circus1991年第一个Python编译器诞生它是用C语言实现的并能够调用C语言的库文件1999年Python web框架之祖Zope 1诞生1994年1月Python 1.0增加了lambdamapfilter 以及 reduce2000年10月16日Python 2.0加入了内存回收机制构成了现在Python语言框架的基础2004年11月30日Python 2.4同年目前最流行的web框架Django诞生2006年9月19日Python 2.52008年10月1日Python 2.62008年12月3日Python 3.02009年6月27日Python 3.12010年7月3日Python 2.72011年2月20日Python 3.22014年3月16日Python 3.42015年9月13日Python 3.52016年12月23日Python 3.62018年3月Guido在邮件列表上宣布Python 2.7将于2020年1月1日终止支持并且不会退出2.8版本希望用户尽快迁移至3.4以上的版本2018年6月21日Python 3.7Python基础变量赋值变量名 变量值name Tim #name是string类型print(type(name))age int(23) #将age强制转换为int型print(type(age))用户交互name input(name:)age int(input(age:))job input(job:)salary int(input(salary:))info --------- info of %s ---------Name:%sAge:%dJob:%sSalary:%d %(name, name, age, job, salary)info2 --------- info of {n} ---------Name:{n}Age:{a}Job:{j}Salary:{s}.format(nname,aage,jjob,ssalary)info3 --------- info of {0} ---------Name:{0}Age:{1}Job:{2}Salary:{3}.format(name, age, job, salary)print(info3)if else流程判断if guess_age age_of_tom:print(Right, you got it!)elif guess_age age_of_tom:print(think smaller...)else:print(think bigger...)while循环while count 3:guess_age int(input(guess age:))if guess_age age_of_tom:print(Right, you got it!)breakelif guess_age age_of_tom:print(think smaller...)else:print(think bigger...)count 1else:print(You guessed wrong.)for循环for i in range(3):guess_age int(input(guess age:))if guess_age age_of_tom:print(Right, you got it!)breakelif guess_age age_of_tom:print(think smaller...)else:print(think bigger...)else:print(You guessed wrong.)