自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 linux 使用wget 下载 waymo数据集

linux wget 下载

2022-07-08 20:52:36 1265 2

原创 python DataFame 读取excel 去除 ‘\xa0’

问题:使用pandas.DataFrame 读取excel文件,文件中混合包含中文符号,数字,读取全部以str格式读取文件。如需要将数字转成 int 或者 float 格式,需要作如下转换:df[column_name] = df[column_name].astype(int)在比较中文字符的时候发现,相同的字符无法正确检索出来,比如我想要查找对方为 ‘奉贤开水二舍’, df.head() 显示这个属性是存在的,如下图所示:但是使用 df['对方'] == ‘奉贤开水二舍’ 进行.

2021-12-06 10:36:04 1985

原创 2021-11-11

学习模型总结真理是互通的,尽管表示方式可能不同。众多学习方式中,总有相似的地方,路径有迹可循,故此将提炼出的模型做一番总结。1. 总->树状结构表示一个主体由多个模块组成。各个模块之间的关联性并没有很强。好比一辆汽车由多个部件组成。2. 发展模式随着时间的发展或者时间进行,失误状态或者本质不断发展变化。类似于生物进化一般。一般这种模型根据自己所设定的目标作为线索,可以很好的追踪。3. 循环迭代模式这种模式类似于循环模型中的for循环,相同的物料不断进行演化,直至结束。4.摇摆模型这个

2021-11-11 17:56:23 154

原创 MySQL: statement is incomplete, excepting ;

原内容编辑如下:use sakila;create procedure my_p1(out p1 decimal(8,2), out p2 decimal(8,2))begin select avg(price) into p1 from film_list ; select max(price) into p2 from film_list ;end;报错如上所示。修改建议:增加delimiter // 分隔符号,就提如下:use sakila;delimit

2021-08-12 19:58:57 3966 1

原创 cannot import name ‘to_categorical‘ from ‘keras.utils‘

根据我自己的摸索排查 ,发现想要的函数to_atagorica,具体路径是keras>utils里面的np_utils.py内的一个函数,所以我们需要直接直到该类,故应该改为:from keras.utils.np_utils import to_catagorical各位下次遇到函数找不到的情况,也可以自己试一试哦!...

2021-08-04 20:58:14 2226 5

原创 ‘CollectReport‘ object has no attribute ‘description‘

背景:在学习虫师的pytest 构建web自动化项目的时候,模仿代码誊写web项目。在运行时候报错,错误如标题所示。文件结构:根据错误提示,是conftest.py 里面的 函数 pytest_runtest_makereport出错了,是report不存在description属性。有网友说是缺乏勾函数,但时在这文件下面,勾函数是已经存在的的,如下图所示:所以不是勾函数的问题。经过长时间排查,我发现是自己在文件baidu_page.py里面写错了参数名,错误为:正确写法应该是:总结

2021-07-28 11:33:26 2789 2

原创 js循环中的i不能用?

为什么javascript中要慎用循环里面的i?先贴上代码:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> * { margin: 0; padding: 0; }

2021-04-28 12:24:36 534

原创 TypeError: read_excel() got an unexpected keyword argument ‘encoding‘

eclipse TypeError: read_excel() got an unexpected keyword argument ‘encoding’代码中有 enconding=“utf8”, 但是在最新的 pandas read_excel()函数中没有关于编码的规定,所以会报typeerror。 我自己的做法是直接删除 enconding=“utf8”。如果是其他的编码格式,我自己也不大清楚怎么办了。以后弄了我再来补吧。当然也欢迎大佬赐教...

2021-01-14 21:43:47 41110 11

原创 数列循环左移

价格一组数列中循环左移,比如1 2 3 4 5 循环左移 2 位 变成 4 5 1 2 3#include<iostream>#include <stdlib.h>using namespace std;const int N = 10010;int n, p;int a[N];void reverse(int l,int r) { while (l < r) { int temp = 0; temp = a[l]; a[l++] = a[r];

2020-05-29 15:01:47 813

原创 快排之寻找第K小的数

#include<iostream>#include <cstring>#include <algorithm>using namespace std;const int N = 10010;int arr[N];int k, n;int partition(int left, int right) { int hh = left+1, tt = right; int pivot = arr[left]; while (hh <= tt) {

2020-05-17 18:21:01 231

原创 冒泡排序和双向冒泡

冒泡排序和一点小应用首先是冒泡排序的算法回顾:#include <iostream>#include <cstring>const int N = 10010;using namespace std;int main(){ int n = 0; cin >> n; int arr[N]; for (int i = 0; i < n; i++) { cin >> arr[i]; } int t = 0; while

2020-05-15 11:43:29 736

原创 多种方式计算最短路径

#include <cstring>#include <iostream>#include <algorithm>using namespace std;const int N = 1001;int d[N];//记录最短路径的生成距离int p[N][N];//记录原始点到点的数据,这里采用矩阵记录点到点的距离bool use[N];//记录该点是否被使用int n, m;void dijk_algorithm() { memset(d, 0x3

2020-05-12 15:53:47 245

原创 汉诺塔游戏

package DataStructure;public class _2_2HanoiTower { public static void main(String[] args) { // TODO Auto-generated method stub int N=5; //表示汉诺塔的层数 HanoiTower(N,"A","B","C"); } static ...

2020-03-20 14:58:52 281

原创 递归方式求数列和以及翻转字符串

题目: 如题所示package DataStructure;public class _2_1递归方式求和数组 { public static void main(String[] args) { // TODO Auto-generated method stub //模拟产生一个从零到10额数组, int [] arr=new int[10]; for(int i=...

2020-03-20 14:19:11 192

原创 出现1次与出现K次

题目: 在一组数中, 有一个数只出现了1次, 其他数都出现了(K>1)次,找出出现一次的数.package DataStructure;public class 求出现1次的某个数 { public static void main(String[] args) { // TODO Auto-generated method stub int []array= {1,1,1...

2020-03-19 23:10:21 153

原创 二进制表示小数

题目如题所示package DataStructure;import java.util.Scanner;public class _2进制表示小数 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input =new Scanner(S...

2020-03-19 21:29:18 315 1

原创 统计2进制表示的数中的1 的个数

题目描述:如题所示package DataStructure;import java.util.Scanner;public class 求2进制表示数中1的个数 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(...

2020-03-18 18:02:43 179

原创 判断一个数是否是2的整数次方

问题描述: 如题所述package DataStructure;import java.util.Scanner;public class 判断整数是不是2的整数次方 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner...

2020-03-18 17:49:36 155

原创 再见,少年

当顾靖扬睡在床上抱着陈菲昨晚枕过的枕头,一脸放松,那一刻多么幸福,又多么心酸。这万般滋味不得明说。但至少他的爱是有回应的啊,陈非在他的爱情勇敢的走了七八十步之后,回身拥抱了他, 在他等待了两年之后,回到了他身旁。 而我注定没有想要的回应的啊。我不欺骗自己,这就是属于我的爱情,想牵又害怕的手,想亲吻又羞涩的脸庞,想给予又害怕被拒绝的关心,凝望他脸庞,无关性欲单纯的幸福,简...

2020-03-18 17:30:41 369

原创 找出落单的数

问题描述:一组数中除了某个数,其他都是两两成对(即出现两次),找出这个数

2020-03-18 17:25:48 424

原创 寻找一组数中唯一重复的数值

问题描述:有1-100的一组数, 理由有位移的一个数是重复的, 在不开辟空间的情况下, 找出这个数.package DataStructure;import java.util.Random;public class LookSingleNumber { public static void main(String[] args) { // TODO Auto-generate...

2020-03-18 15:57:51 234

原创 始与终,流年不负

今天是学期最后一天,我一个人坐在图书馆自习,开始散落坐着的两三个人走了之后,终于空荡荡的剩我一个了,像极了开学第一天自习的情形,不过那时候是一个人渐至多人,这可真如时光倒带一般。那一刹那的恍惚,似乎时光回到最初,一切都是全新的开始,一切都还来得及诉说和努力。只是你我既负了芳华,自然也都知道,这不过是幻想,实际是一个学期又过了,寂静无人的开始与寂寥无人的最后之间,匆匆忙忙来来往往早已走过无数熙...

2020-01-15 19:12:51 230

原创 jdk配置

1.官网下载相对应的版本(注意要选择自己相对应的版本):JDK下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html2.进入下载好的文件,点击这个直接执行。大胆安装,一般来说,默认的安装路径是 C:\Program Files\Java\jdk-13.0.1如果自己安装过程进行了修改,...

2020-01-14 15:55:42 306

原创 使用ioc过程

1.创建maven工程,添加依赖<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo...

2020-01-12 11:21:50 123

原创 the sun also rises day20

through( a long narrow open container for animals to eat and drink)hitch( to fix sth to sth else with a rope, a hook ,etc.)1.they thought i was hell's own shakes of a soldier.shake一般表示否定的作用.他们认...

2019-12-23 09:36:01 140

原创 记录第一朵小兰花.

一朵花养了三年了才开的人,必不是什么惜花之士,要么太懒,要么缺乏育花之术,总归与花缺点缘分.但比起彼岸花花叶永不相见之类之绝惨境地,好歹我这小兰花他终于开了,开在这寒冷的冬天.发现之余,激动夹带着感动,赶紧笔而记之. 我这小兰,断断续续陪了我四年了吧.大一时候记不清什么原因了,估计是寂寞空虚吧,兴起搞了盆兰花玩,就算寓情于物吧.说是兰花,一般人可不太信,叶子纤长弱不禁风,路边野草...

2019-12-22 19:49:51 246 1

原创 the sun also rises day19

inscription(words written in the front of the book or cut in stone or metal)simulate(to be made to look like sth else)1.he could forgive attack of nervers, panic, bad unexplainable action, all sort...

2019-12-22 15:15:09 140

原创 mysql grant授权

1.语法: grant privileges on datebasedb.tablename to user@'%';所有后续的语法都由此产生,很重要.解释:1)privileges指的是各种权利,包括insert, select, alter, deop, update,create 等等, 如果是单个,那空格就要好了,如果一次性要授权多个,那就需要逗号分开.2)datebase...

2019-12-22 11:55:17 360

原创 the sun also rises day19

forward(to send or pass goods or information to sb)1.brett passed out on the train, so brought her here for 3 day rest with old friends of ours.Brett昏迷了三天,所以我们带她到老朋友这里休息三天.2.it gives all the dope...

2019-12-21 21:22:05 109

原创 mysql 导出SQL文件

1.先进入到mysql的路径,比如我的mysql是安装在以下路径下的;c:\Program Files\MySQL\MySQL Server 8.0\bin不需要进入mysql,打开才买的之后就直接输入以下命令行;mysqldump -h localhoast -uroot -p warehousedb>d://ware.sql然后输入密码就好了.warehousedb使...

2019-12-18 19:26:28 200

原创 the sun also risrs day18

expatraite( a person liveing in a country that is not their own)impotent(unable to take effection action or unabble to have sex)1.been working for the commen good? splendid.为我们共同的利益奋斗?太好了2.i th...

2019-12-18 11:21:36 161

原创 中断过程

1.中断的分类2.中断过程3.中断向量要求: 中断吗和中断向量的相互转换,以及判断中断类型比如: (0040H)=2400BH,(0042H)=D169H,的中断类型码是40/4=10H, 起始地址是:D169:240BH....

2019-12-18 10:32:27 255

原创 the sun also rises day17

tumblerful (the amount of liquid that this type of a glass can contain)1. the country was barren and rocks stuck up throughthe clay.这里土地贫瘠,岩石破土而出.2.making the horizen were the brown mountains....

2019-12-17 16:28:28 177

原创 the sun also rises day17

powder(a dry substance in the form og very small grains)patch ( a piece of material that you used to cover a hole in something)1.he was a young fellow,and he held the wine-bottle at full arm's len...

2019-12-16 21:01:02 158

原创 the sun also rises day16

1. i have never seen a men in civil life as nervous as Robert Cohn -- nor as eager.我在和平时期还没见过像Robert Cohn这么紧张的人,还是这么急迫的。2.i don't think i ever hate he until he had that little spell superiority at...

2019-12-15 10:29:11 166

原创 the sun also rises day15

subscrible(to pay an amount of money regulary in order or use something)lump( a piece of sothing hard and soid.usually without a particular shape)1. i say i will go with him, just to devil him.我说...

2019-12-14 11:00:29 129

原创 cmd 进入mysql

1.找到mydql 的安装路径,可以去服务中找(图中的红色框框就是安装路径):打开cmd页面,输入mysql的安装路径,注意,前面有cd 作为路径转换,mysql的在安装路径要取到bin为止:然后输入口令: mysql -h localhost -u root -p执行之后输入密码即可....

2019-12-13 15:13:35 169

原创 the sun also rises daY14

frontier(a line that separates two countries etc: the land near this line, or wqe could call it borderland )furrow(wrinkle; a wide deep line made in the surface of something ; to pull you brows ...

2019-12-13 10:13:22 124

原创 8253的六种工作方式

方式0: 一般用作请求中断源.选定---->out变低--->WR(表示WR低电平有效)变低,在WR上升沿的下一个周期时读入,在gate为高电平的情况下开始减数操作(gate为地的情况,计数器将保持值不变),方式1:一般用作输出固定时长的方波,比如定时器.选定--->out变高---->输入n--->gate的上升沿开时启动,计数器减1工作-----&gt...

2019-12-12 21:09:17 14706

原创 the sun also rises day13

1.mighty little fishing you did on them trips.你那几回出去,也没见钓到鱼啊.2. do you know that gang of pilgrim fathers have cornered the dinning-car until half past three this afternoon.?你知道那帮清教徒霸占餐车知道下午三点半吗?...

2019-12-12 19:20:00 123

空空如也

空空如也

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

TA关注的人

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