小肥羊要进步

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 27 下一页

2020年5月28日

读书笔记之数据结构栈与队列

摘要: 1.栈-先进后出LIFO 出栈 poping,入栈pushing 栈的5个方法:is_empty,push(向栈的顶部添加一个元素),pop(从顶部移除一个元素),peek(返回顶部的元素,但不会移除),size(返回一个表示栈中元素数量的整型数) 2.代码举例如下: class Stack: de 阅读全文

posted @ 2020-05-28 23:55 小肥羊要进步 阅读(230) 评论(0) 推荐(0)

2020年5月27日

网络爬虫之爬取百度新闻链接

摘要: 1.安装beauitfulsoup4 cmd-> pip install beautifulsoup4python提供了一个支持处理网络链接的内置模块urllib,beatuifulsoup是用来解析html 验证安装是否成功 2. pycharm配置 3.代码如下 import urllib.re 阅读全文

posted @ 2020-05-27 23:17 小肥羊要进步 阅读(1546) 评论(0) 推荐(0)

2020年5月24日

读书笔记之Bash

摘要: 笔者使用的是Window系统,我使用在线工具 https://c.runoob.com/compile/18 https://www.tutorialspoint.com/execute_bash_online.php 1. 2.查看所有最近命令列表 :$ history 3.相对路径和绝对路径:目 阅读全文

posted @ 2020-05-24 23:13 小肥羊要进步 阅读(154) 评论(0) 推荐(0)

2020年5月23日

读书笔记之python深入面向对象编程

摘要: # L14 深入面向对象编程#14.1类有2种类型的变量:类变量与实例变量class Rectangle(): def __init__(self,w,l): self.width=w self.len=l def print_size(self): print("""{}by""".format( 阅读全文

posted @ 2020-05-23 23:16 小肥羊要进步 阅读(202) 评论(0) 推荐(0)

2020年5月22日

读书笔记之python面向对象编程的四大支柱

摘要: #封装,继承,多态,抽象#封装#1.封装1:在面向对象编程中,对象将变量和方法集中在一个地方,即对象本身class Rectangle(): def __init__(self,w,l): self.width=w self.len=l def area(self): return self.wid 阅读全文

posted @ 2020-05-22 23:29 小肥羊要进步 阅读(404) 评论(1) 推荐(0)

2020年5月2日

git基础使用01

摘要: Git 1.版本控制(配置管理) 集中式SVN/CVS 分布式版本管理系统GIT 2.查看Git是否已经安装 git –-version 下载git for Win 新建空白文件右击-》git bash 3.git init- Git add-Git commit-Git push 首先git in 阅读全文

posted @ 2020-05-02 22:29 小肥羊要进步 阅读(181) 评论(0) 推荐(0)

2020年4月19日

python读取列表中的每个数据,@DDT,@Data(*data),@unpack使用

摘要: 1.* 可以分别读取数据 2.比如一个列表,如何读取列表中的每个数据? 3.再举一个例子,对比加了*号和不加* 号的结果,*把列表里的数据分开了 4.如果列表有多组数据,如何分别读取呢?用到@unpack,如此就可以添加数据逗号里的几个参数 代码和结果更能表达清除 *只能帮我们去除一层括号里的数据, 阅读全文

posted @ 2020-04-19 23:10 小肥羊要进步 阅读(2385) 评论(0) 推荐(0)

python单元测试_读取excel表中的数据

摘要: from openpyxl import load_workbookclass do_excel: def __init__(self,file_name,sheet_name): self.file_name=file_name self.sheet_name=sheet_name def get 阅读全文

posted @ 2020-04-19 14:38 小肥羊要进步 阅读(369) 评论(0) 推荐(0)

2020年4月18日

python去读取excel中的数值

摘要: #数据存在excel里面Python去读取操作,只支持后缀为.xlsxfrom openpyxl import load_workbook#打开excelwb=load_workbook("test.xlsx")#定位表单sheet=wb["Sheet1"]#定位单元格res=sheet.cell( 阅读全文

posted @ 2020-04-18 14:12 小肥羊要进步 阅读(680) 评论(0) 推荐(0)

2020年4月16日

python写get/post请求—练习

摘要: 1.需求文档如下: 2.Pycharm import requestsclass HttpRequest: def http_request(self,url,data,method): if method == 'get': res=requests.get(url,data) else: res 阅读全文

posted @ 2020-04-16 21:24 小肥羊要进步 阅读(492) 评论(0) 推荐(0)

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 27 下一页

导航