自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 收藏
  • 关注

原创 使用R blogdown创建个人网站(保姆级教程)

R blogdown搭建个人网站

2023-04-27 17:16:52 312

原创 #excel学习笔记(二)#SUM,SUMIF和SUMIFS函数,日期的处理

目录1 新建窗口2 SUM函数▲示例:计算1-8月GMV总和​▲示例:计算一月和八月的GMV总和3 SUMIF函数 -单条件求和▲示例:计算2020/07/01的GMV之和4 SUMIFS函数-多条件求和▲示例:计算2020/07/31美团平台的GMV▲示例:计算日环比▲示例:计算日同比(按月)▲示例:计算每月的GMV▲示例:计算月环比1 新建窗口▲为了方便在计算时从原始数据中选择数据,可以新建一个窗口,选择视图-新建窗口会出现两个联动...

2021-11-21 21:01:22 6242

原创 #excel学习笔记(一)#数据备份,了解数据,数据透视图表

目录1 原始数据备份2 了解数据3 数据透视表▲学习资料:b站戴师兄数据分析课程▲excel练习数据:https://pan.baidu.com/s/1d7FRi7BXR-74IcBrIjQc0w提取码YYQX1 原始数据备份▲拿原始数据第一时间先进行备份,右键数据表-移动或复制-勾选建立副本▲对于副本数据可右键-隐藏,若要取消隐藏可以右键任意工作表-取消隐藏2 了解数据▲查看数据量级:选中整行或整列,右下角出现数据计数▲第一行(表头)表示数据的属性,每一列为一.

2021-11-21 19:12:01 488 1

原创 #python学习笔记(二十三)#使用PIP安装包

目录1 检查是否已安装PIP2 下载包3 使用包4 查找包5 删除包6 列出已安装的包1 检查是否已安装PIP将命令行导航到 Python 脚本目录所在的位置,然后键入以下内容:C:\Users\name\AppData\Local\Programs\Python\Python310\pip --version若未安装,可从此页面下载https://pypi.org/project/pip/2 下载包pip install+包名下载包下载名为 "c...

2021-11-18 22:33:25 842

原创 #python学习笔记(二十二)#python模块

目录1 创建模块2 使用模块▲模块是包含一组函数的文件,可以在未来的应用程序中引用。1 创建模块▲如需创建模块,只需将所需代码保存在文件扩展名为.py的文件中如:在名为mymodule.py的文件中保存代码def greeting(name): print("Hello, " + name)2 使用模块▲采用import关键词导入模块import mymodule▲在导入模块时可以采用as关键字创建别名(对于名字较长的模块方便后续的使用)...

2021-11-18 22:01:42 436

原创 #python学习笔记(二十一)#python与SQL基本操作

目录1 背景知识2 SQL基本语法2.1 基本元素2.2 运算符2.3 comments2.4 基本操作3 用python创建database table4 用python对数据库进行更改1 背景知识▲数据库Database概念:Table(Relation),row(tuple),column(attribute)▲有许多不同的数据库系统,用于各种各样的目的,包括:Oracle, MySQL, Microsoft SQL Server, PostgreSQL

2021-11-16 15:08:49 1213

原创 #python学习笔记(二十)#面向对象编程:类和继承

目录1 Object的创建2 对象的构造函数和析构函数3 类的继承1 Object的创建▲一个对象Object是由函数(我们称之为方法method)以及这些函数所使用的数据所组成的,我们称数据为对象属性attributes的一部分。如list为python的一个内置对象:stuff = list()stuff.append('python')stuff.append('chuck')stuff.sort()dir(stuff)▲append,sort为list对象的方.

2021-11-09 16:28:04 569

原创 #python学习笔记(十九)#应用程序接口

▲Application Program Interfaces (APIs):应用程序之间的契约,定义两个应用程序组件之间的交互模式。当我们使用一个API时,通常一个程序会提供一组服务供其他应用程序使用,并发布访问该程序提供的服务时必须遵循的API(即规则)。▲Service-oriented architecture (SOA):当我们开始构建我们的程序时,我们的程序的功能包括访问其他程序提供的服务,我们将这种方法称为面向服务的体系结构(SOA)。SOA方法是我们的整个应用程序利用其他应用程序的服务的

2021-11-08 22:32:24 394

原创 #python学习笔记(十八)#解析JSON

目录1 JSON结构2 解析JSON1 JSON结构▲JSON结构{ "name" : "Chuck", "phone" : { "type" : "intl", "number" : "+1 734 303 4456" }, "email" : { "hide" : "yes" }}▲XML结构<person> <name>Chuck</name&

2021-11-08 20:57:07 422

原创 #python学习笔记(十七)#解析XML文件

目录1 XML基本结构2 解析XML3 循环XML节点1 XML基本结构▲一个eXtensible Markup Language (XML)示例:<person> <name>Chuck</name> <phone type="intl"> +1 734 303 4456 </phone> <email hide="yes" /></person>

2021-11-06 15:07:23 138

原创 #python学习笔记(十六)#解析HTML,BeautifulSoup

目录1 应用正则表达式解析HTML2 应用 BeautifulSoup解析HTMLWeb scraping is when we write a program that pretends to be a web browser and retrieves pages, then examines the data in those pages looking for patterns.Web抓取是指我们编写一个程序,假装是一个Web浏览器,然后检索页面,然后检查这些页面中的数据寻找模式。

2021-11-05 22:22:47 340

原创 #python学习笔记(十五)#用urllib从网页获取文本和图像,视频

目录1 读取网页信息2 读取二进制(非文本)文件(图像,视频等)▲urllib相比socket能更加简单的处理网页内容,基本处理方式与文件类似1 读取网页信息import urllib.requestfhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')###打开要访问的网页for line in fhand:###用for loop逐行读取内容 print(line.decode().strip(

2021-11-05 09:58:22 682

原创 #python 学习笔记(十四)#用socket获取网络数据:文本或图像

目录1Hypertext Transfer Protocol - HTTP2 应用socket获取网页文本3 应用socket获取网页图像1Hypertext Transfer Protocol - HTTPA protocol is a set of precise rules that determine who is to go first, what they areto do, and then what the responses are to that messag..

2021-11-04 22:25:21 803

原创 #python学习笔记(十三)#常用的正则表达式

^+str 以某字段(str)开头^From: 表示以From: 开头的字符串. 任意一个字符多个点表示多个字符,如F..m: 将会适配以下字符串“From:”, “Fxxm:”, “F12m:”, 或 “F!@m:”* 重复0 到多次+ 重复1到多次^From:.+@ 表示From:开头,后面接1到多个任意字符,之后接@,如From: stephen.marquard@uct.ac.zaNote:+和*非常‘pushy’,他们会匹配尽可能多的字符,如:...

2021-10-29 16:33:46 222

原创 #python学习笔记(十二)#可变序列(list、dictionary)的常用操作

目录赋值删除添加和复制排序▲string,list,dictionary和tuples都属于sequence序列▲string的元素为字符;dictionary的元素为key-value对,list的tuple的元素可以为任意类型▲string和tuple属于不可变序列immutable sequence;list和dictionary属于可变序列mutable sequence▲对于可变序列,如list,有以下一些操作:赋值s[i]=x s[i:j]=...

2021-10-28 11:19:53 88

原创 #python学习笔记(十一)#元组:比较,排序,找出出现次数最多的单词

目录1Tuples are immutable2Comparing tuples3Tuple assignment4Dictionaries and tuples5Using tuples as keys in dictionaries6 tuples VS list1Tuples are immutable▲元组与列表类似,但是它不可改变▲元组常用()括号表示>>> t = ('a', 'b', 'c', 'd', 'e')▲ 创...

2021-10-27 21:36:01 457

原创 #python学习笔记(十)#字典:对文件中的单词进行计数

目录1 Dictionary2Dictionary as a set of counters3 Looping and dictionary1 DictionaryA dictionary is like a list, but more general. In a list, the index positions have to be integers; in a dictionary, the indices can be (almost) any type字典和列表类似,.

2021-10-27 11:00:32 410

原创 #python学习笔记(九)#列表:创建、遍历、方法、函数和解析字符串

目录1A list is a sequence2Lists are mutable3Traversing a list4List methods5Lists and functions6Lists and strings7 Parsing lines1A list is a sequenceLike a string, a list is a sequence of values. In a string, the values are char...

2021-10-26 22:51:44 215

原创 #python学习笔记(八)#文件的打开,读写和查找

目录1 Open files2 Reading files3 Searching through a file4Letting the user choose the file name5 写入文件1 Open filesIf the open is successful, the operating system returns us a file handle. The filehandle is not the actual data contained in the.

2021-10-26 21:47:32 466

原创 #python学习笔记(七)#字符串

目录1 A string is a sequence2 Strings are immutable3 Looping the string4 String comparision5 String method1 A string is a sequence▲可以用bracket[ ]取字符串里的字符,第一项为0,最后一项为字符串长度-1>>> fruit = 'banana'>>> letter = fruit[1]>>&

2021-10-21 17:07:01 278

原创 #python学习笔记(六)#最全的string method示例

目录str.capitalize()str.casefold()str.center(width[,fillchar])str.count(sub[,start[,end]])str.encode(encoding='utf-8',errors='strict')str.endswith(suffix[,start[,end]])str.expandtabs(tabsize=8)str.find(sub[,start[,end]])str.forma...

2021-10-21 15:02:38 962 1

原创 #python学习笔记(五)#循环语句

目录1 Updating variables2 The while statement3 Infinite loops4 Definite loops using for5 Examples:counting and summing loops6Examples:maximum and minimum loops1 Updating variables▲更新变量的值采用赋值语句x = x + 1▲被更新的变量需要有初始值initialize,否则会报错&g..

2021-10-20 20:54:56 265

原创 #python学习笔记(四)#函数

目录1 Function calls2 Build-in functions3 Adding new functions4 Fruitful functions and viod functions1 Function calls▲函数调用:函数名(参数1,参数2...),如>>> type(32)<class 'int'>type为函数名,32为参数,返回函数调用的结果<class 'int'>2 Build-in func

2021-10-20 16:44:25 162

原创 #python学习笔记(三)#条件执行语句

目录1 Boollean expression2 Conditional execution3 Try and except1 Boollean expressionA boolean expression is an expression that is either true or false布尔表达式的结果为true或者falseTrue and False are special values that belong to the class bool; they.

2021-10-20 09:41:27 199

原创 #python学习笔记(二)#变量、表达式、语句

1 Values and types▲integer 整数:如2▲float 浮点数:如4.6▲string 字符:’Jackson Yee‘,’123‘type() 用于指示数据的类型>>> type(2)<class 'int'>>>> type(4.6)<class 'float'>>>> type('Jackson Yee')<class 'str'>>>>

2021-10-19 21:06:20 74

原创 #python学习笔记(一)#背景知识

1. Learning materialspython for everybody book:https://www.py4e.com/bookcoursera 课程:https://www.coursera.org/specializations/pythonpython下载:https://www.python.org/downloads/文本编辑器下载:https://atom.io/2. Computer hardware structure▲Central Proc..

2021-10-19 16:10:44 627

原创 R语言做地理分析:数据导入,合并,绘图,导出

学习笔记,原文链接????:https://andrewmaclachlan.github.io/CASA0005repo/geographic-information.htmlhttps://andrewmaclachlan.github.io/CASA0005repo/geographic-information.html0 数据准备0.1 伦敦边界数据 (.shp)0.2 伦敦2008-2020垃圾乱丢事件统计数据 (.csv)https://pan.baidu.com/s/1mBri

2021-09-28 17:02:07 6418 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除