学习Python第一天(笔记2)2018年12月11号

存一波Python的33个保留字:
and as assert break class continue def elif else except finally for from if import in is lambda not or pass raise return try while with yield del global nonlocal True False None
计算机技术的演进:
1946~1981(第一台IBM诞生) 计算机系统结构时代(计算能力)
1981~2008 (Android的诞生) pc到移动端 网络到视图(交互问题)
2008~2016(柯杰失败) 云计算,大数据,网络安全(复杂)(数据问题)
2018~…… 人工智能 (人类问题,应用问题)

编程语言:
basic,c \c++,c#,css,fortan Go,HTML,java,Javascript,Lua,Matlab,Object c
Pascal Perl,php,python,Ruby,Scala,SQL,Swift,VB.NET(编程语言也是一个江湖)
Python的优势:
代码量少,第三方库多(工具决定思维)

海龟绘图体系重要的实例:
画一个蟒蛇:

#PythonDraw.py
import turtle 
turtle.setup(200,200,0,0,)#前两项是画布的大小,后两项是画图的起始位置
turtle.penup()#海龟飞起来
turtle.fd(-250)#倒着走250个像素
turtle.pendown()#海龟落下
turtle.pensize(25)
turtle.pencolor("green")
turtle.seth(-40)
for i in range(4):
	turtle.circle(40,80)
	turtle.circle(-40,80)
turtle.circle(40,40)
turtle.fd(40)
turtle.circle(16,180)
turtle.fd(80/3)
turtle.done()

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/anyifan369/article/details/84961754