第一章:油箱加满,准备出发
1.1 Python的历史
知识点:
1.Python之父Guido van Rossum在阿姆斯特丹为了打发无聊的圣诞节,开发了一门解释型编程语言,这就是Python。
2.Python的历史大概如下:
(1)1990年:Python公开版发布;
(2)2000年:Python2.0发布;
(3)2008年:Python3.0发布;
(4)2020年:Python2.7停止维护。
最后在附一段代码:
i = input('please write a number:')
n = 8888
try:
result = n / int(i)
print(result)
print('{0} division by {1} is {2}'.format(n,i,result)
except Exception as e:
print('you make a error and is {}'.format(e))
今天就到这里了,再见!
ps:这种东西大概会出147篇左右,途中我还会出现练一练,希望大家喜欢!