Python
1.介绍
1.1989 1991 v1.0
2.荷兰 吉多.范罗苏姆
3.数据采集 , 数据分析 ,web , 自动化运维测试
2.数据类型
1.int(整数)
str(字符串)
float(浮点型)
bool(布尔型)
tuple(元组)
list(列表)
dict(字典)
set(集合)
complex(复数)
2.类型的确定是由值决定的
3.运算符
1.算数运算符:+ - * / % ** //(向下取整)
返回 数
2.比较运算符:> >= < <= == !=
返回 bool
3.逻辑运算符:and or not
返回 bool
4.in not in
5.is is not
4.变量
规则:
1.必须是字母,数字,下划线
2.数字不能开头
3.不能是关键字 33
import keyword
print(keyword.kwlist)
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else',
'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or',
'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
4.多个单词 中间用 _
5.见名知意
6.大小写敏感
5.小乌龟
1.turtle
绘图
https://www.apiref.com/python-zh/library/turtle.html#turtle-motion