Python全栈工程师Day03学习笔记

本文介绍了Python的历史,包括Python 2.7和Python 3.x的主要区别,强调了Python 3.x对中文的默认支持和更好的Unicode处理。此外,还探讨了32/64-bit系统的差异,以及Python版本选择的考虑因素。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

PART 01

写在前面的话:

All grows is a leap in the dark.
所有的成长都是黑暗中的一跃!!!!

PART 02 Python历史、32/64-bit的区别、系统运行机制浅析

一. Python历史

  1. 1989年,Guido开始写Python语言的编辑器。
  2. 1991年,第一个Python编译器诞生。它是用C语言实现的,并能够调用C语言的库文件。
  3. Granddaddy of Python web frameworks, Zope 1 was released in 1999 .
  4. Python 2.0 - October 16 , 2000年 , 加入了内存回收机制,构成了现在Python语言框架的基础。
  5. Python 2.4 - November 30 , 2004年 , 经典版本,同年目前最流行的web框架Djanggo(D不发音)框架 。
  6. Python 2.7 - July 3 , 2010年 , 目前业内主流使用的工业版本依然是2.7 。
  7. In November 2014 , it was announced that Python 2.7 would be supported until 2020 , and reaffirmed that there would be no 2.8 release as users were expected to move to Python 3.4+ as soon as possible .
  8. Python 3.0 - December 3 , 2008 .

二. 32-bit/64-bit、系统运行机制浅析

  1. 32位:内存的最大寻址空间是2^32 , 即4GB 。 (说明:若硬件为8GB内存,但32位只支持到4GB内存)
  2. 64位:理论上,内存的最大寻址空间是2^64,但实际上支持不到这么大的内存,约为2^4x,即十几TB 。
  3. 目前主板支持的最大内存是100多GB 。
  4. 硬件为4GB内存,64位的系统与32位的系统一样快。
  5. 操作系统也需要占用一定的内存。
  6. 对一台计算机的性能进行分析,最主要的三个因素:CPU、Memory(内存)、Disk(硬盘)。内存与运行速度有关,而加载速度与硬盘有关。一个软件的运行:CPU通过OS(操作系统)的接口访问硬盘,从硬盘将数据读取到Memory中进行运行。
  7. 硬盘:5400转=骑自行车;7200转=骑电动车;10000转=骑快速电动车;15000转=骑摩托车(机械硬盘中最快的) | SSD=Tesla

PART 03 Python版本的选择

一. What are the differences?

Short version: Python 2.x is legacy(遗产), Python 3.x is the present and future of the language

Guido van Rossum (the original creator of the Python language) decided to clean up Python 2.x properly(适当的), with less regard(不管) for backwards compatibility(兼容) than is the case for new releases in the 2.x range. The most drastic(激进

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值