自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Jonariguez 吾本优秀

IT理性男的博客

  • 博客(136)
  • 收藏
  • 关注

原创 CS224n课程Assignment3参考答案

Assignment#3−solutionBy Jonariguez Assignment\#3 -solution\quad By\ JonariguezAssignment#3−solutionBy Jonariguez所有的代码题目对应的代码已上传至github/CS224n/Jonariguez所有的代码题目对应的代码可查看对应文件夹Assignment3_Code...

2019-07-14 17:52:48 2111

原创 CS224n课程Assignment2参考答案

Assignment#2−solutionBy Jonariguez Assignment\#2 -solution\quad By\ JonariguezAssignment#2−solutionBy Jonariguez所有的代码题目对应的代码已上传至github/CS224n/Jonariguez解:(提示使用keepdims参数会方便一些哦。 )解:(积...

2019-06-18 12:01:12 2572

原创 CS224n课程Assignment1参考答案

Assignment#1−solutionBy  Jonariguez Assignment\#1-solution\quad By\; Jonariguez Assignment#1−solutionByJonariguez所有的代码题目对应的代码已上传至github/CS224n/Jonariguez解:softmax(x)i=exi∑jexj=ecexie...

2019-06-13 21:26:48 1791

原创 window下将pip修改为国内源

window下将pip修改为国内源打开我的电脑,然后在地址路径栏上输入%appdata%之后点回车,它会自动跳到某个文件夹下面,你也不用管这是哪里。创建一个文件夹,名字为pip,然后进入pip文件夹,在里面创建一个名字为pip.ini的文件。打开pip.ini,输入如下内容:[global]index-url = http://pypi.douban.com/simple[inst...

2019-04-25 16:52:34 551

原创 python爬虫错误:http.client.HTTPException: got more than 100 headers的解决方法

python爬虫错误:http.client.HTTPException: got more than 100 headers的解决方法Traceback (most recent call last): File "C:\Users\Jonariguez\AppData\Roaming\Python\Python36\site-packages\urllib3\connectionpool...

2019-04-16 10:52:16 1973

原创 json和txt文件的读取和json文件与字典之间的格式读取转换

json和txt文件的读取和json文件与字典之间的格式读取转换一. 读取txt文件with open('filename.txt','r',encoding='utf-8') as f: data = f.readlines()这样会将filename.txt文件中的内容以列表的形式读入到data中,每一行数据为一个元素。二. 将字典写入到json文件import json...

2019-04-16 10:30:55 9755 1

原创 python操作本地浏览器webbrowser

python操作本地浏览器webbrowserwebbrowser是python3自带的库,可以直接用import webbrowser导入。webbrowser的使用import webbrowser as webweb.open('https://www.baidu.com')就可以直接使用默认的浏览器打开https://www.baidu.com 选用别的浏览器那就需要先注册...

2019-04-16 10:01:03 12086 4

原创 docker的使用以及在docker中使用mongodb

docker的使用以及在docker中使用mongodb参考博客:https://blog.csdn.net/laodengbaiwe0838/article/details/79340818查看现有镜像docker images查看容器状态docker ps查看全部的容器docker ps -a删除镜像docker rmi <IMAGE_ID or IMAGE_NA...

2019-04-04 17:22:19 3127

原创 github在fork之后如何保持与原仓库同步

参考博客整体思路为:在自己的本地仓库添加原仓库为上游仓库upstream,然后将所有更新拉取到本地,然后通过push操作推送本地到自己远程仓库。git remote -v在查看现在的远程仓库路径。其中origin后面的就是你自己的远程仓库路径git remote add upstream 远程仓库路径添加原仓库为上游仓库。其中红色框里的远程仓库路径为原仓库路径再次用g...

2019-01-01 20:03:47 1448

原创 Python核心编程(第二版) 第十二章 习题答案

已放在我的GitHub:https://github.com/Jonariguez/Core_Python_Programing_Exercises_Answers模块12-1 路径搜索和搜索路径之间有什么不同路径搜索:在所有的文件路径里搜索某个文件的操作搜索路径:是文件系统“预定义的区域”,包含多个路径。在搜索路径里进行路径搜索,来搜索某些文件。12-2 假设模块mymodule里有...

2019-01-01 19:19:11 402

原创 github在pull request时只提交指定commit的方法

我们在fork了别人的仓库之后,如果进行了修改,可以pull request到原仓库,但是如果你进行了很多的修改,并有很多的commit,那你在pull request的时候,同时也会把之前pull request的commit一块带上(很可能影响不大),不过还是介绍一下每次pull request某个指定的commit。假设你的远程仓库为origin,原仓库即上游仓库为upstream。修...

2018-12-30 18:08:28 12792 4

原创 Python核心编程(第二版) 第十一章 习题答案

已放在我的GitHub:https://github.com/Jonariguez/Core_Python_Programing_Exercises_Answers函数和函数式编程11-1def countToFour1(): for eachNum in range(5): print eachNum,def countToFour2(n): for e...

2018-12-30 14:04:37 591

原创 Python核心编程(第二版) 第九章 习题答案

已放在我的GitHub:https://github.com/Jonariguez/Core_Python_Programing_Exercises_Answers文件和输入输出9-1 显示一个文件的所有行,忽略以#之后的内容import osf=open('input.txt','r')for line in f: idx = line.find('#') if idx...

2018-12-30 14:01:47 893 2

原创 Python核心编程(第二版) 第八章 习题答案

已放在我的GitHub:https://github.com/Jonariguez/Core_Python_Programing_Exercises_Answers条件和循环8-1 看下面的代码:# statement Aif x&amp;amp;gt;0: # statement B passelif x&amp;amp;lt;0: # statement C passelse: ...

2018-12-28 21:48:17 1148

原创 Python核心编程(第二版) 第七章 习题答案

已放在我的GitHub:https://github.com/Jonariguez/Core_Python_Programing_Exercises_Answers映像和集合类型7-1 哪个字典方法可以用来把两个字典合并到一起?update()方法 dict1.update(dict2)update()方法可以用来将一个字典的内容添加到另外一个字典中。字典中原有的键重复,那么重复键所对应的...

2018-12-28 21:46:20 2922

原创 Python核心编程(第二版) 第六章 习题答案

序列:字符串、列表和元组6-1 string模块中是否有一种字符串方法或者函数可以帮我鉴定下一个字符串是否是另一个大字符串的一部分count() 函数:count(str,sub)返回str字符串中的sub出现的次数,若不为0,则说明出现过。并且支持输入范围count(str,sub,beg=0,end=len(str)) find() 函数:find(str,sub)返回str字符串中的s...

2018-12-07 21:41:28 3391

原创 Python核心编程(第二版) 第五章 习题答案

已放在我的GitHub:https://github.com/Jonariguez/Core_Python_Programing_Exercises_Answers数字5-1 讲讲Python普通整型和长整型的区别Python中的普通整型与C语言中的int类似,根据机器的不同和采用的编译器不同,普通整型可以是32位或者64位的,所能表达的范围分别为-2312&lt;sup&gt;31&lt;...

2018-12-06 13:06:27 1130

原创 Python核心编程(第二版) 第四章 习题答案

已放在我的GitHub:https://github.com/Jonariguez/Core_Python_Programing_Exercises_AnswersPython 对象4-1 与所有Python对象有关的三个属性是什么?请简述身份:每一个对象都有一个唯一的身份标识自己,且都可以用内建函数id()来得到类型:对象的类型决定了该对象可以保持什么类型的值,可以进行什么操作,已经遵...

2018-12-02 10:18:52 629

原创 Python核心编程(第二版) 第三章 习题答案

Chapter3 Python基础3-1 为什么Python中不需要变量名和变量类型声明?因为Python是动态类型语言,对象的类型和内存占用都是运行时确定的,即不像C语言有预编译过程,所以不需要预先知道对象的名字和类型,故需要声明。因为尽管python代码会被编译成字节码,但Python仍然是一种解释性语言。3-2 为什么Python中不需要声明函数类型?类似于变量,函数一样不需要声明...

2018-12-01 15:55:40 915

原创 斜率优化dp结论

斜率优化dp一切的前提为:k&lt;j&lt;i,假设从j转移到i比从k转移到i更优(即靠后的j优),去按照题目推导不等式,如果得到g(k,j)&lt;f(i),因为想在决策i的时候f(i)其实为常量,我们设为C=f(i),则将前述不等式表述一般化:定理:对于下标k&lt;j,如果g(k,j)&lt;C,则靠后的j更优;否则,g(k,j)&gt;C,靠前的k更优。结论:如果g(i,j)&lt;...

2018-10-03 21:11:12 180

原创 2017山东省ACM省赛总结(校史首金!!)

前言: 这次省赛是在青岛科技大学,5月7号-8号。我们山东建筑大学出了4个正式队参加(随着每届省赛的正式名额的增加,我们学校已经没必要出星花队了,因为我们实验室水平能够参加省赛ACMer光正式队就够了-_-|)。我们是周六(5月7号)一早6点多和山大的一块拼车,坐汽车出发去青岛。山大可是10个队呢,满满的大神,心里默默地膜拜了一番(其实几乎每年打省赛我们学校都会和山大的拼车,所以我参...

2017-05-09 22:16:36 6842 18

原创 ZOJ3777 Problem Arrangement 期望+状态压缩+meet in the middle中途相遇法

Problem ArrangementTime Limit: 2 Seconds      Memory Limit: 65536 KBThe 11th Zhejiang Provincial Collegiate Programming Contest is coming! As a problem setter, Edward is going to arrange the o

2016-05-08 14:20:57 834

原创 Codeforces Round #106(Div. 2) 149D. Coloring Brackets 区间DP 记忆化搜索

D. Coloring Bracketstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOnce Petya read a problem about a brac

2016-04-20 11:12:51 535

原创 Codeforces Round #252(Div. 2) 441D. Valera and Swaps 置换群

D. Valera and Swapstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA permutation p of length n is a seque

2016-04-05 20:22:20 521

原创 Codeforces Round #252(Div. 2) 441C. Valera and Tubes 构造

C. Valera and Tubestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera has got a rectangle table consist

2016-04-05 20:12:58 541 2

原创 Codeforces Round #252(Div. 2) 441B. Valera and Fruits 贪心

B. Valera and Fruitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera loves his garden, where n fruit

2016-04-05 19:58:05 649

原创 Codeforces Round #252(Div. 2) 441A. Valera and Antique Items 水题

A. Valera and Antique Itemstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera is a collector. Once he w

2016-04-05 19:45:51 426

原创 Codeforces Round #251(Div. 2) 439D. Devu and his Brother 枚举

D. Devu and his Brothertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDevu and his brother love each other

2016-04-05 19:38:51 432

原创 Codeforces Round #251(Div. 2) 439C. Devu and Partitioning of the Array 构造

C. Devu and Partitioning of the Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDevu being a small kid

2016-04-05 19:20:15 615

原创 Codeforces Round #251(Div. 2) 439B. Devu, the Dumb Guy 贪心

B. Devu, the Dumb Guytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDevu is a dumb guy, his learning curve

2016-04-05 19:05:26 598

原创 Codeforces Round #251(Div. 2) 439A. Devu, the Singer and Churu, the Joker 水题

A. Devu, the Singer and Churu, the Jokertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDevu is a renowned

2016-04-05 18:54:40 892

原创 Codeforces Round #247(Div. 2) D. Random Task 二分+前缀和

D. Random Tasktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day, after a difficult lecture a diligent

2016-04-05 17:00:35 471

原创 Codeforces Round #247(Div. 2) C. k-Tree DP

C. k-Treetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputQuite recently a creative student Lesha had a lect

2016-04-05 16:46:52 593

原创 Codeforces Round #247(Div. 2) B. Shower Line 暴力

B. Shower Line time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard outputMany students live in a dormitory. A dorm

2016-04-05 16:36:04 465

原创 Codeforces Round #247(Div. 2) A. Black Square 水题

A. Black Squaretime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputQuite recently, a very smart student named J

2016-04-05 16:26:16 681

原创 HDU 5654 xiaoxin and his watermelon candy 归并树

xiaoxin and his watermelon candyTime Limit: 4000/4000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 161    Accepted Submission(s): 38Problem Description

2016-03-27 14:23:59 551

原创 HDU5653 Bomber Man wants to bomb an Array. DP

Bomber Man wants to bomb an Array.Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 246    Accepted Submission(s): 82Problem Description

2016-03-27 14:16:21 543

原创 HDU5651 xiaoxin juju needs help 组合

xiaoxin juju needs helpTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 293    Accepted Submission(s): 87Problem DescriptionAs we all

2016-03-26 22:20:54 483

原创 HDU5652India and China Origins 并查集

India and China OriginsTime Limit: 2000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 118    Accepted Submission(s): 34Problem DescriptionA long ti

2016-03-26 22:06:58 841

原创 HDU5583 Kingdom of Black and White

Kingdom of Black and WhiteTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 65    Accepted Submission(s): 33Problem DescriptionIn the

2015-11-29 11:37:14 919

空空如也

空空如也

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

TA关注的人

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