
python
chq_yys
这个作者很懒,什么都没留下…
展开
-
python变量&运算符
赋值与变量>>> A = [1,2,3,4,5,6]>>> print(A)[1, 2, 3, 4, 5, 6]>>> B = [1,2,3]>>> A*3 + B + A[1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 1, 2, 3, 1, 2, 3, 4, 5, 6]>>> 变量命名的可读性要强变量命名规则使用字母,数字,原创 2020-12-11 10:33:32 · 179 阅读 · 0 评论 -
python基本数据类型
基本数据类型Number 数字整数 int浮点数 float>>> print('hello world')hello world>>> type(1)<class 'int'>>>> type(-1)<class 'int'>>>> type(1.1)<class 'float'>>>> type(1+1.0)<class 'float'>原创 2020-12-07 17:30:51 · 108 阅读 · 0 评论