自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1392)
  • 资源 (2)
  • 论坛 (1)

原创 Pandas熊猫框架

Pandas熊猫框架用于数据挖掘和数据分析,同时也提供数据清洗功能。利器之一:DataFrame DataFrame是Pandas中的一个表格型的数据结构,包含有一组有序的列,每列可以是不同的值类型(数值、字符串、布尔型等),DataFrame即有行索引也有列索引,可以被看做是由Series组成的字典。利器之一:Series 它是一种类似于一维数组的对象,是由一组数据(各种NumPy数据类型)以及一组与之相关的数据标签(即索引)组成。仅由一组数据也可产生简单的Series对象。下载 ...

2020-06-25 08:37:26 641

原创 json结构化

json结构化

2020-06-11 17:29:53 155

原创 爱听音乐

import requestsfrom bs4 import BeautifulSoupfrom urllib.request import urlretrieve # 下载网络文件import ssl# 全局取消ssl认证ssl._create_default_https_context = ssl._create_unverified_context# 爬取网易云音乐的ID,下载音乐文件class SpiderApp(): # 初始化 def __init__(self.

2020-06-11 16:21:56 115

原创 爬取飞猪IP免费代理练习

练习作业 ⻜猪教程采集 https://www.feizhuip.com/?source=baidu&keyword=feizhuIP https://www.feizhuip.com/News-getInfo-id-663.html ⽬标 1. 从⼀级⻚⾯获取⼆级⻚⾯的url、title2. 获取⼆级⻚⾯中的教程、路径存起来import requestsfrom bs4 import BeautifulSoup# 爬取飞猪IP免费代理clas...

2020-06-11 12:16:42 178

原创 飞猪爬虫项目

import requestsfrom bs4 import BeautifulSoup# 爬取飞猪IP免费代理class SpiderApp: # 初始化属性 def __init__(self): # 地址、头部、请求对象、解析对象 self.url = "https://www.feizhuip.com/?source=baidu&keyword=feizhuIP" self.head = {"user-agent".

2020-06-11 10:37:53 400

原创 BeautifulSoup

from bs4 import BeautifulSoupprint("path-",BeautifulSoup)import requestsheaders = { "User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"}response_get = requests..

2020-06-10 17:59:57 99

原创 require框架

#!/usr/bin/env python # -*- coding:utf-8 -*-import requestsprint("path-",requests)# 1.请求方式# GET: 地址栏,请求路径和参数可见,数据有大小限制,485kb# POST: 请求路径和参数不可见,数据无大小限制response_get = requests.get(url="http://httpbin.org/get")response_post = requests.post(url.

2020-06-10 16:37:00 82

原创 数据库

# 创建应用class APP: # __init__ 初始化窗口视图 def __init__(self,width=500,height=300,title="全网VIP视频破解"): self.width = width self.height = height self.title = title # 创建窗口 self.root = tkinter.Tk(className=self.title..

2020-06-09 17:25:10 94

原创 图像处理

#!/usr/bin/env python # -*- coding:utf-8 -*-#脚本的功能#把图片通过PILLOW框架的图像处理,处理字符填充的图像#读取图片def getImg(): #使用Image读取图片 img = Image.open(fp=img_path) print("图片大小",img.size) img = img.resize(size=(int(img.size[0]/3),int(img.size[1]/3))) pr.

2020-06-09 11:53:25 101

原创 类和对象

#!/usr/bin/env python # -*- coding:utf-8 -*-#对象:通过这个对象可以调用属性和函数,实现我们的所需的业务,# 而这个对象具体做了什么,过程,我们就不去关心#对象:从模板中实例化而来#python编程#object=ClassName()#class 抽象一个明星模板class Star(): #属性 #公开属性 #私有属性 __money外部不能访问 name = "宇哥" sex = "" ag.

2020-06-09 09:58:09 97

原创 函数多形态

#!/usr/bin/env python # -*- coding:utf-8 -*-#函数模块化编程,代码的优化,复用性,二次重构,阅读性#内置函数:print,type,int,,,#自定义函数:声明,封装,调用执行#数学:斐波那切数列def count(n:int) -> list: """ 数学:斐波那切数列 :param n: number: :return: list: """ result = [] a,b = 0,.

2020-06-08 18:04:35 100

原创 变量和数据类型

#!/usr/bin/env python # -*- coding:utf-8 -*-#数据类型:num,str,列表,元组,字典(key:value)a=520b=3.14c="我爱你"list1=[a,b,c]tuple1=(a,b,c)dict1={"name":"我们","你们":a}print("查看数据类型:",type(a),type(b),type(tuple1),type(list1),type(dict1))#类型转换:内置函数i = int(b)f = f.

2020-06-08 16:21:25 103

原创 概率第二章复习笔记

2020-05-16 10:58:36 109

原创 1125 Chain the Ropes (25分)

1125Chain the Ropes(25分)Given some segments of rope, you are supposed to chain them into one rope. Each time you may only fold two segments into loops and chain them into one piece, as shown by the figure. The resulting chain will be treated as another..

2020-05-12 23:34:53 91

原创 1119 Pre- and Post-order Traversals (30分)

1119Pre- and Post-order Traversals(30分)Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal sequences, or preorder and inorder traversal seq..

2020-05-11 20:57:35 74

原创 1133 Splitting A Linked List (25分)

1133Splitting A Linked List(25分)Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all the values in [0, K] appear before all those greater than K. The orde..

2020-05-11 20:32:31 85

原创 1124 Raffle for Weibo Followers (20分)

1124Raffle for Weibo Followers(20分)John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from every N followers who forwarded his post, and give away gifts. Now ..

2020-05-11 19:51:21 89

原创 1115 Counting Nodes in a BST (30分)

1115Counting Nodes in a BST(30分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than or equal to the node's key. The right subtree of..

2020-05-10 20:44:30 82

原创 1118 Birds in Forest (25分)

1118Birds in Forest(25分)Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the scientists to count the maximum number of trees in the f..

2020-05-10 19:59:38 78

原创 1117 Eddington Number (25分)

1117Eddington Number(25分)British astronomer Eddington liked to ride a bike. It is said that in order to show off his skill, he has even defined an "Eddington number",E-- that is, the maximum integerEsuch that it is forEdays that one rides more th...

2020-05-10 19:40:11 109

原创 概率论第一章笔记

2020-05-10 10:40:17 156

原创 1114 Family Property (25分)

1114Family Property(25分)This time, you are supposed to help us collect the data for family-owned property. Given each person's family members, and the estate(房产)info under his/her own name, we need to know the size of each family, and the average area ..

2020-05-09 19:56:27 85

原创 1142 Maximal Clique (25分)

1142Maximal Clique(25分)Acliqueis a subset of vertices of an undirected graph such that every two distinct vertices in the clique are adjacent. Amaximal cliqueis a clique that cannot be extended by including one more adjacent vertex. (Quoted fromht...

2020-05-09 19:33:15 68

翻译 1111 Online Map (30分)

1111Online Map(30分)Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is the shortest, and the other is the fastest. It is guaranteed that a path exists for ..

2020-05-09 12:55:14 78

原创 1113 Integer Set Partition (25分)

1113Integer Set Partition(25分)Given a set ofN(>1) positive integers, you are supposed to partition them into two disjoint setsA​1​​andA​2​​ofn​1​​andn​2​​numbers, respectively. LetS​1​​andS​2​​denote the sums of all the numbers inA​1​...

2020-05-09 00:11:06 84

原创 1122 Hamiltonian Cycle (25分)

1122Hamiltonian Cycle(25分)The "Hamilton cycle problem" is to find a simple cycle that contains every vertex in a graph. Such a cycle is called a "Hamiltonian cycle".In this problem, you are supposed to tell if a given cycle is a Hamiltonian cycle.I..

2020-05-08 23:49:08 73

原创 1121 Damn Single (25分)

1121Damn Single(25分)"Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of.Input S...

2020-05-07 13:36:47 68

原创 1120 Friend Numbers (20分)

1120Friend Numbers(20分)Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are friend numbers since 1+2+3...

2020-05-07 12:53:52 82

原创 1152 Google Recruitment (20分)

1152Google Recruitment(20分)In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL con...

2020-05-07 12:42:20 84

原创 1150 Travelling Salesman Problem (25分)

1150Travelling Salesman Problem(25分)The "travelling salesman problem" asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possi...

2020-05-07 12:22:29 89

原创 1146 Topological Order (25分)

1146Topological Order(25分)This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed graph? Now you are suppo...

2020-05-06 09:30:38 122

原创 1144 The Missing Number (20分)

1144The Missing Number(20分)Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case. Fo...

2020-05-06 08:57:39 90

原创 1128 N Queens Puzzle (20分)

1128N Queens Puzzle(20分)The "eight queens puzzle" is the problem of placing eight chess queens on an8×8chessboard so that no two queens threaten each other. Thus, a solution requires that no two...

2020-05-06 08:34:58 105

原创 1148 Werewolf - Simple Version (20分)

1148Werewolf - Simple Version(20分)Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game,player #1 said: "Play...

2020-05-06 01:17:44 68

原创 1132 Cut Integer (20分)

1132Cut Integer(20分)Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B ...

2020-05-06 00:57:18 106

原创 1140 Look-and-say Sequence (20分)

1140Look-and-say Sequence(20分)Look-and-say sequence is a sequence of integers as the following:D, D1, D111, D113, D11231, D112213111, ...whereDis in [0, 9] except 1. The (n+1)st number is ...

2020-05-06 00:45:05 67

原创 1149 Dangerous Goods Packaging (25分)

1149Dangerous Goods Packaging(25分)When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in serious troub...

2020-05-05 00:04:20 64

原创 1116 Come on! Let's C (20分)

1116Come on! Let's C(20分)"Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of the contest is for fun,...

2020-05-03 23:59:26 65

原创 1112 Stucked Keyboard (20分)

1112Stucked Keyboard(20分)On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for...

2020-05-03 23:25:42 72

原创 1110 Complete Binary Tree (25分)

1110Complete Binary Tree(25分)Given a tree, you are supposed to tell if it is a complete binary tree.Input Specification:Each input file contains one test case. For each case, the first line gi...

2020-05-02 16:42:22 90

餐饮项目终版.zip

这是一个用javaweb+html+css+js+mysql写的优质项目

2019-08-03

第1章算法竞赛概述.ppt

算法竞赛培养这样的能力:对复杂问题,用高效的算法或逻辑,进行建模并编码实现。 编码能力 Gates: ”If you want to hire an engineer, look at the guy’s code. That’s all. If he hasn’t written a lot of code, don’t hire him.” 丰富的算法知识 计算思维和逻辑思维 团队合作精神

2019-05-25

chen_zan_yu_的留言板

发表于 2020-01-02 最后回复 2020-04-29

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