摘要: 每日算法 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel like workin 阅读全文
posted @ 2020-02-21 11:28 _starsky 阅读(217) 评论(0) 推荐(0) 编辑
摘要: numpy基础学习 numpy得基础属性 使用numpy 创建一个矩阵 关于numpy得各种属性 np.ndim : 输出矩阵得维度 np.shape: 输出矩阵得形状大小 np.size : 输出矩阵中一共有多少个元素 如何使用numpy创建各种各样得矩阵 1. 创建静态矩阵 2. 在创建时设置矩 阅读全文
posted @ 2020-02-20 19:09 _starsky 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1. 导入requests 库 进入dos命令行 通过pip命令安装requets库 2.第一个简单的例子 首先我们应该导入 requets库 通过 type(r) 我们发现requests.get()方法返回的是Response 接下来我们查看文本内容 我们会发现此时会出现很多的乱码,是因为编码的 阅读全文
posted @ 2020-02-19 23:57 _starsky 阅读(268) 评论(0) 推荐(0) 编辑
摘要: leetcode 每日打卡 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel li 阅读全文
posted @ 2020-02-19 21:00 _starsky 阅读(295) 评论(0) 推荐(0) 编辑
摘要: leetcode 每日打卡 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel li 阅读全文
posted @ 2020-02-17 22:00 _starsky 阅读(187) 评论(0) 推荐(0) 编辑
摘要: leetcode 每日打卡 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel li 阅读全文
posted @ 2020-02-15 22:48 _starsky 阅读(186) 评论(0) 推荐(0) 编辑
摘要: "contest" A B 阅读全文
posted @ 2020-02-15 11:26 _starsky 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Python四种逐行读取文件内容的方法 下面四种Python逐行读取文件内容的方法, 分析了各种方法的优缺点及应用场景,以下代码在python3中测试通过, python2中运行部分代码已注释,稍加修改即可。 方法一:readline函数 # -*- coding: UTF-8 -*- f = op 阅读全文
posted @ 2020-02-13 23:42 _starsky 阅读(3576) 评论(0) 推荐(0) 编辑
摘要: leetcode 每日打卡 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel li 阅读全文
posted @ 2020-02-13 22:37 _starsky 阅读(192) 评论(0) 推荐(0) 编辑
摘要: leetcode 每日打卡 those times when you get up early and you work hard; those times when you stay up late and you work hard; those times when don’t feel li 阅读全文
posted @ 2020-02-12 21:41 _starsky 阅读(197) 评论(0) 推荐(0) 编辑