![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
野老杂谈
十年数据开发经验,曾就职于亚信、商汤、美团等公司。主要研究方向:大数据、人工智能、数据平台建设、数仓建设、数据治理、数据应用...
展开
-
Python 中的 List 列表
列表任意对象的有序集合1、定义 列表可以包含任何种类的对象; 列表都是可变的; 列表是有序的;2、常用操作# 列表长度L1 = [1, 2, 3, 4]print(len(L1)) # 4# 列表拼接L2 = L1 + [5, 6]print(L2) # [1, 2, 3, 4, 5, 6]# 生成重复列表print(['list'] * 5) # ['list', 'list', 'list', 'list', 'list']# 不能将一个...原创 2020-11-27 17:54:58 · 214 阅读 · 0 评论 -
Python安装及开发环境搭建
一、安装 Python1.1 在python官网下载python:https://www.python.org/downloads/选择2.7.8这个版本1.2 选择windows 64位:1.3 下载好后直接双击安装二、安装开发工具 PyCharm2.1 下载PyCharm下载地址:http://www.jetbrains.com/pycharm/download/#section=windo...原创 2018-03-15 23:34:00 · 509 阅读 · 0 评论 -
Python常用模块之hashlib
1、hashlib很多加密算法,比如 SHA1、SHA256、SHA512、SHA384等2、如果使用的是 python3 版本,就需要设置字符的编码,不然会报错: TypeError: string argument without an encoding 或 TypeError:Unicode-objects must be encode before hashing...原创 2018-03-19 16:40:29 · 581 阅读 · 0 评论