![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 126 阅读 · 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 · 66 阅读 · 0 评论